Note: 77 iso(Fuel 5.0.1), VirtualBox
Steps To Reproduce:
1. Create new environment with the following configuration:
2 nodes (Controller+Mongo, Compute+CEPH-OSD), CentOS with Neutron GRE, install MURANO, SAVANNA and Ceilometer.
2. Start deployment.
Actual result:
Deployment fails with error (please see attached snapshot, localhost/var/log/remote/node-5.domain.tld/puppet-apply.log):
nova-manage db sync returned 1 instead of one of [0]
and
-----------
2014-06-30T09:45:28.358521+00:00 notice: (/Stage[main]/Nova::Api/Exec[nova-db-sync]/returns) IntegrityError: (IntegrityError) (1062, "Duplicate entry 'node-5-conductor-0' for key 'uniq_services0host0topic0deleted'") 'ALTER TABLE services ADD CONSTRAINT uniq_services0host0topic0deleted UNIQUE (host, topic, deleted)' ()
2014-06-30T09:45:28.359332+00:00 notice: (/Stage[main]/Nova::Api/Exec[nova-db-sync]/returns) nova-nova CRITICAL: IntegrityError: (IntegrityError) (1062, "Duplicate entry 'node-5-conductor-0' for key 'uniq_services0host0topic0deleted'") 'ALTER TABLE services ADD CONSTRAINT uniq_services0host0topic0deleted UNIQUE (host, topic, deleted)' ()
-----------
and
___________
2014-06-30T09:47:39.229728+00:00 notice: (/Stage[main]/Nova::Api/Exec[nova-db-sync]/returns) OperationalError: (OperationalError) (1050, "Table 'instances' already exists") "\nCREATE TABLE instances (\n\tcreated_at DATETIME, \n\tupdated_at DATETIME, \n\tdeleted_at DATETIME, \n\tid INTEGER NOT NULL AUTO_INCREMENT, \n\tinternal_id INTEGER, \n\tuser_id VARCHAR(255), \n\tproject_id VARCHAR(255), \n\timage_ref VARCHAR(255), \n\tkernel_id VARCHAR(255), \n\tramdisk_id VARCHAR(255), \n\tlaunch_index INTEGER, \n\tkey_name VARCHAR(255), \n\tkey_data MEDIUMTEXT, \n\tpower_state INTEGER, \n\tvm_state VARCHAR(255), \n\tmemory_mb INTEGER, \n\tvcpus INTEGER, \n\thostname VARCHAR(255), \n\thost VARCHAR(255), \n\tuser_data MEDIUMTEXT, \n\treservation_id VARCHAR(255), \n\tscheduled_at DATETIME, \n\tlaunched_at DATETIME, \n\tterminated_at DATETIME, \n\tdisplay_name VARCHAR(255), \n\tdisplay_description VARCHAR(255), \n\tavailability_zone VARCHAR(255), \n\tlocked BOOL, \n\tos_type VARCHAR(255), \n\tlaunched_on MEDIUMTEXT, \n\tinstance_type_id INTEGER, \n\tvm_mode VARCHAR(255), \n\tuuid VARCHAR(36), \n\tarchitecture VARCHAR(255), \n\troot_device_name VARCHAR(255), \n\taccess_ip_v4 VARCHAR(39), \n\taccess_ip_v6 VARCHAR(39), \n\tconfig_drive VARCHAR(255), \n\ttask_state VARCHAR(255), \n\tdefault_ephemeral_device VARCHAR(255), \n\tdefault_swap_device VARCHAR(255), \n\tprogress INTEGER, \n\tauto_disk_config BOOL, \n\tshutdown_terminate BOOL, \n\tdisable_terminate BOOL, \n\troot_gb INTEGER, \n\tephemeral_gb INTEGER, \n\tcell_name VARCHAR(255), \n\tnode VARCHAR(255), \n\tdeleted INTEGER, \n\tlocked_by ENUM('owner','admin'), \n\tcleaned INTEGER, \n\tPRIMARY KEY (id), \n\tCHECK (locked IN (0, 1)), \n\tCHECK (auto_disk_config IN (0, 1)), \n\tCHECK (shutdown_terminate IN (0, 1)), \n\tCHECK (disable_terminate IN (0, 1))\n)ENGINE=InnoDB CHARSET=utf8\n\n" ()
2014-06-30T09:47:39.248732+00:00 err: /usr/bin/nova-manage db sync returned 1 instead of one of [0]
2014-06-30T09:47:39.248732+00:00 err: /usr/lib/ruby/vendor_ruby/puppet/util/errors.rb:97:in `fail'
2014-06-30T09:47:39.248732+00:00 err: /usr/lib/ruby/vendor_ruby/puppet/type/exec.rb:120:in `sync'
___________
seems like a intermittent database consistency problem. may be related to performance of virtualbox environment. need a reproducer on different environment.