Friday, 2015-01-16

*** championofcyrodi has joined #murano00:18
championofcyrodiDBDuplicateEntry showing up in fuel 5.1 deployment.  just delete the db entry or what?00:18
championofcyrodiDBDuplicateEntry: (IntegrityError) (1062, "Duplicate entry '0dc5c66d16b04d48b07c868cc195f46a-ost1_test-Murano_env01' for key 'tenant_id'")00:18
*** openstack has joined #murano01:34
championofcyrodii should also say.  I originally suffered from the bug in which the rabbitmq installation script was the rabbitmq script for nova.  So I was getting connection refused for a while.01:55
championofcyrodi(because the userid & pw stored in murano.conf did not match.  so i switched them to use the nova userid and password.  then restarted the murano services.01:56
championofcyrodion my 3 controllers running icehouse via fuel in HA mode.01:57
*** lazy_prince has joined #murano02:15
*** lazy_prince has left #murano02:16
*** dsdf has joined #murano05:32
*** dsdf has quit IRC05:37
*** Miouge has joined #murano07:52
openstackgerritEkaterina Chernova proposed stackforge/murano-dashboard: Use Form instead of one-step workflow  https://review.openstack.org/14430408:48
openstackgerritEkaterina Chernova proposed stackforge/murano-dashboard: Show reason of failure during package upload  https://review.openstack.org/13700408:49
openstackgerritEkaterina Chernova proposed stackforge/murano-dashboard: Use Form instead of one-step workflow  https://review.openstack.org/14430408:50
openstackgerritEkaterina Chernova proposed stackforge/murano-dashboard: Use Form instead of one-step workflow  https://review.openstack.org/14430409:49
katyaferventHi championofcyrodi10:05
katyaferventare you getting this error during the deployment?10:06
katyaferventyes, you can try to clean environments table in 'murano' table. what DB are you using?10:06
openstackgerritEkaterina Chernova proposed stackforge/murano-specs: Add enable-category-management specification  https://review.openstack.org/13963010:23
openstackgerritFilip Blaha proposed stackforge/murano: Functional tests for policy enforcement  https://review.openstack.org/14751510:27
openstackgerritDmytro Dovbii proposed stackforge/murano-agent: Fix typo in Murano Agent  https://review.openstack.org/14780810:35
openstackgerritDmytro Dovbii proposed stackforge/murano-agent: Fix typo in Murano Agent  https://review.openstack.org/14780810:37
*** rvasilets_ has left #murano10:58
openstackgerritFilip Blaha proposed stackforge/murano: Functional tests for policy enforcement  https://review.openstack.org/14751512:14
openstackgerritDmytro Dovbii proposed stackforge/murano-agent: Fix 'is' statement to 'in' in Murano Agent  https://review.openstack.org/14780812:35
championofcyrodikatyafervent: Hi12:48
championofcyrodiYes.  This is occurring during deployment.12:49
katyaferventDo you have full traceback? could you please paste it to paste.openstack.org?12:49
championofcyrodiThe INSERT statement is in the error, so I can identify the record marked as a dupllicate12:49
championofcyrodisure.12:50
championofcyrodihttp://paste.openstack.org/show/158249/12:51
katyaferventMurano engine is responsible for the deployment12:51
championofcyrodimysqldb12:51
championofcyrodiI understand.  I need to leave my home and go to my work place.  Be back in 15 minutes or so.12:52
katyaferventand it seems to me that it is not using database12:52
katyaferventdo you see this error permanently?12:52
katyaferventchampionofcyrodi, lucky you, just 15 minutes to go to work :)12:53
*** championofcyrod1 has joined #murano12:53
championofcyrodi:)12:54
*** championofcyrodi has quit IRC12:54
championofcyrod1the Duplicate entry error leads me to believe it has a database connection.  However, the record was already in the environment table.13:30
championofcyrod1katyafervent^13:30
slagunchampionofcyrod1: hi!13:31
championofcyrod1was wondering if it is possible that because murano rabbitmq server connection was down, database synchronization across the 3 instances did not work properly?13:31
championofcyrod1slagun: hello!13:31
slagunfrom your stacktrace I see that you creating second environment with the same name13:31
championofcyrod1interesting.  I am using a diagnostic feature of the mirantis fuel 5.1 server.13:33
championofcyrod1"health check"13:33
championofcyrod1perhaps this is an issue with fuel then.13:33
slagunost1_test-Murano_env01 looks like a name generated by test. Probably it hasn't cleaned up from previous run and doesn't use random names13:34
championofcyrod1so would it be safe for me to manually remove the entry from the mysqldb?13:34
championofcyrod1my concern is that there could be other foreign key relationships in the database w/ that entry.13:35
slagunyou could delete them as well13:35
slagunfrom "sessions" table13:35
championofcyrod1okay.  I have removed the entry from the environment table...13:40
championofcyrod1looking for the key 003e0811f5234e1f9886efb4f27827a4 in sessions table then...13:40
championofcyrod1'id' i guess...13:40
slagunenvironment_id13:40
championofcyrod1ah found it... (the only entry)13:41
championofcyrod1nvm, there are two.. it is one of two.13:41
championofcyrod1interesting.  there is no entry in the session table that matches the environment_id from the conflicting entry13:42
championofcyrod1http://paste.openstack.org/show/158253/13:43
slagunyou need to 1) DELETE from session where environment_id = d2e71ba446294a4182b986ef12055488   2) DELETE from environment where ID = d2e71ba446294a4182b986ef1205548813:43
championofcyrod1"from session where environment_id = d2e71ba446294a4182b986ef12055488" does not exist13:44
slagunthats okay13:45
championofcyrod1environment where ID = d2e71ba446294a4182b986ef12055488 does not exist either.13:46
championofcyrod1sweet13:46
championofcyrod1fixed!13:46
championofcyrod1removing the entry environment WHERE id = '003e0811f5234e1f9886efb4f27827a4'; allowed the health check to successfully finish.13:47
slagunid = 003e0811f5234e1f9886efb4f27827a413:47
slagunyes13:47
championofcyrod1How did you know the session table possibly had foreign key constraints?13:48
championofcyrod1are the constraints objects in the mysqldb?13:48
championofcyrod1ah... 'SHOW CREATE TABLE <table>; will show the SQL with constraint information.  clever.13:49
slagunI know from https://github.com/stackforge/murano/blob/master/murano/db/models.py#L111 but those constraints are in MySQL so there should be a way to look up there13:49
openstackgerritEkaterina Chernova proposed stackforge/murano-specs: Add enable-category-management specification  https://review.openstack.org/13963013:50
championofcyrod1so the environment table does not have a key constraint. but the session table does.13:50
championofcyrod1CONSTRAINT `session_ibfk_1` FOREIGN KEY (`environment_id`) REFERENCES `environment` (`id`)13:51
slagunsessions reference environments. Environments reference nothing :)13:51
championofcyrod1so it is likely that the environments is populated 1st.13:51
slagunthis is a primary key constraint which is present in every table13:51
championofcyrod1well thank you so much for your time.  I will document this on my blog for others.  Most of my googling only resulted in Ekaterina's posts about handling the exception with a custom murano exception.13:52
slagunI think this is just a bug in tests. Maybe random issue13:53
championofcyrod1yes.  it should cleanup the test records if they already exist.13:53
*** Miouge_ has joined #murano13:56
*** Miouge has quit IRC13:59
*** Miouge_ is now known as Miouge13:59
openstackgerritMerged stackforge/murano-agent: Fix 'is' statement to 'in' in Murano Agent  https://review.openstack.org/14780814:24
openstackgerritEkaterina Chernova proposed stackforge/murano-dashboard: Add category management page  https://review.openstack.org/14756514:46
openstackgerritEkaterina Chernova proposed stackforge/python-muranoclient: Enable category management support  https://review.openstack.org/14787315:01
openstackgerritEkaterina Chernova proposed stackforge/murano-dashboard: Show reason of failure during package upload  https://review.openstack.org/13700415:08
*** drupalmonkey has joined #murano15:20
openstackgerritOndrej Vojta proposed stackforge/murano: Initial implementation of policy enforcement point  https://review.openstack.org/14245815:31
openstackgerritEkaterina Chernova proposed stackforge/murano-dashboard: Change application index default sort from 'created' to 'name'  https://review.openstack.org/13464716:03
openstackgerritMerged stackforge/murano-dashboard: Fix catalog view in case no application uploaded  https://review.openstack.org/14399916:13
*** Miouge has quit IRC16:19
*** Miouge has joined #murano16:21
*** drupalmonkey has quit IRC16:48
*** drupalmonkey has joined #murano16:50
*** Miouge has quit IRC18:00
*** Miouge has joined #murano18:17
*** stan_lagun has joined #murano21:23
*** slagun has quit IRC21:26
*** openstackgerrit has quit IRC23:19
*** openstackgerrit has joined #murano23:19
*** drupalmonkey has quit IRC23:48

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!