← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1729363] [NEW] udercloud deployment fails due to database table exists

 

Public bug reported:


openstack-neutron-common-12.0.0-0.20171031133005.c4ab792.el7.centos.noarch
openstack-tripleo-heat-templates-8.0.0-0.20171101050604.d6a2160.el7.centos.noarch


I ran 
bash devmode.sh --no-gate --ovb -d -w /var/tmp/tripleo_local

It fails with this error:
Wednesday 01 November 2017  14:34:04 +0100 (0:00:08.612)       1:01:58.659 **** 
fatal: [undercloud]: FAILED! => {"changed": true, "cmd": "set -o pipefail && /home/stack/undercloud-install.sh 2>&1 | awk '{ print strftime(\"%Y-%m-%d %H:%M:%S |\"), $0; fflush(); }' > /home/stack/undercloud_install.log", "delta": "0:54:11.019567", "end": "2017-11-01 14:28:15.963100", "failed": true, "rc": 1, "start": "2017-11-01 13:34:04.943533", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}

PLAY RECAP *********************************************************************
localhost                  : ok=28   changed=19   unreachable=0    failed=0   
undercloud                 : ok=57   changed=34   unreachable=0    failed=1   


Logs were not really helpful, pointing me at logs pointing to the same for more info.

Finally:
oslo_db.exception.DBError: (pymysql.err.InternalError) (1050, u"Table 'qos_policies_default' already exists") [SQL: u'\nCREATE TABLE qos_policies_default (\n\tqos_policy_id VARCHAR(36) NOT NULL, \n\tproject_id VARCHAR(255) NOT NULL, \n\tPRIMARY KEY (project_id), \n\tFOREIGN KEY(qos_policy_id) REFERENCES qos_policies (id) ON DELETE CASCADE\n)ENGINE=InnoDB\n\n']

** Affects: neutron
     Importance: Undecided
         Status: New

** Affects: tripleo
     Importance: High
         Status: New

** Changed in: tripleo
   Importance: Undecided => High

** Changed in: tripleo
    Milestone: None => queens-2

** Also affects: neutron
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1729363

Title:
  udercloud deployment fails due to database table exists

Status in neutron:
  New
Status in tripleo:
  New

Bug description:

  
  openstack-neutron-common-12.0.0-0.20171031133005.c4ab792.el7.centos.noarch
  openstack-tripleo-heat-templates-8.0.0-0.20171101050604.d6a2160.el7.centos.noarch

  
  I ran 
  bash devmode.sh --no-gate --ovb -d -w /var/tmp/tripleo_local

  It fails with this error:
  Wednesday 01 November 2017  14:34:04 +0100 (0:00:08.612)       1:01:58.659 **** 
  fatal: [undercloud]: FAILED! => {"changed": true, "cmd": "set -o pipefail && /home/stack/undercloud-install.sh 2>&1 | awk '{ print strftime(\"%Y-%m-%d %H:%M:%S |\"), $0; fflush(); }' > /home/stack/undercloud_install.log", "delta": "0:54:11.019567", "end": "2017-11-01 14:28:15.963100", "failed": true, "rc": 1, "start": "2017-11-01 13:34:04.943533", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}

  PLAY RECAP *********************************************************************
  localhost                  : ok=28   changed=19   unreachable=0    failed=0   
  undercloud                 : ok=57   changed=34   unreachable=0    failed=1   

  
  Logs were not really helpful, pointing me at logs pointing to the same for more info.

  Finally:
  oslo_db.exception.DBError: (pymysql.err.InternalError) (1050, u"Table 'qos_policies_default' already exists") [SQL: u'\nCREATE TABLE qos_policies_default (\n\tqos_policy_id VARCHAR(36) NOT NULL, \n\tproject_id VARCHAR(255) NOT NULL, \n\tPRIMARY KEY (project_id), \n\tFOREIGN KEY(qos_policy_id) REFERENCES qos_policies (id) ON DELETE CASCADE\n)ENGINE=InnoDB\n\n']

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1729363/+subscriptions


Follow ups