<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Marius,<div class=""><br class=""></div><div class="">I am getting a permission error when trying to run nova-manage</div><div class=""><div style="margin: 0px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">[heat-admin@overcloud-controller-2 ~]$ /usr/bin/nova-manage db sync</div><div style="margin: 0px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">Traceback (most recent call last):</div><div style="margin: 0px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class=""> File "/usr/bin/nova-manage", line 10, in <module></div><div style="margin: 0px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class=""> sys.exit(main())</div><div style="margin: 0px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class=""> File "/usr/lib/python2.7/site-packages/nova/cmd/manage.py", line 1330, in main</div><div style="margin: 0px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class=""> config.parse_args(sys.argv)</div><div style="margin: 0px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class=""> File "/usr/lib/python2.7/site-packages/nova/config.py", line 56, in parse_args</div><div style="margin: 0px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class=""> default_config_files=default_config_files)</div><div style="margin: 0px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class=""> File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 1860, in __call__</div><div style="margin: 0px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class=""> self._namespace._files_permission_denied)</div><div style="margin: 0px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">oslo_config.cfg.ConfigFilesPermissionDeniedError: Failed to open some config files: /usr/share/nova/nova-dist.conf,/etc/nova/nova.conf</div><div class=""><br class=""></div><div class="">These files are owned by nova:nova</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">[heat-admin@overcloud-controller-2 nova]$ ll</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">total 148</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">-rw-r-----. 1 root nova 4130 Jul 28 19:53 api-paste.ini</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">-rw-r-----. 1 nova nova 111964 Sep 11 16:49 nova.conf</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">-rw-r-----. 1 root nova 20086 Jul 28 19:53 policy.json</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">-rw-r--r--. 1 root root 72 Aug 21 14:16 release</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">-rw-r-----. 1 root nova 936 Jul 28 19:53 rootwrap.conf</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><br class=""></div></div><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">Also, nova-manage.log seems to be going fine until it gets this error:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">2015-09-11 16:49:40.904 30583 DEBUG migrate.versioning.repository [-] Config: OrderedDict([('db_settings', OrderedDict([('__name__', 'db_settings'), ('repository_id', 'nova'), ('version_table', 'migrate_version'), ('required_dbs', '[]')]))]) __init__ /usr/lib/python2.7/site-packages/migrate/versioning/repository.py:83</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">2015-09-11 16:49:40.924 30583 DEBUG oslo_db.sqlalchemy.session [-] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/session.py:513</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">2015-09-11 16:49:40.956 30583 INFO migrate.versioning.api [-] 266 -> 267... </div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">2015-09-11 16:49:41.294 30583 CRITICAL nova [-] OperationalError: (OperationalError) (1061, "Duplicate key name 'uniq_instances0uuid'") 'ALTER TABLE instances ADD CONSTRAINT uniq_instances0uuid UNIQUE (uuid)' ()</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">__</div><div class="">Ignacio Bravo<br class="">LTG Federal, Inc</div><div class=""><a href="http://www.ltgfederal.com" class="">www.ltgfederal.com</a></div><div class="">Office: (703) 951-7760<br class=""></div><div class=""><br class=""></div></div></div><div><blockquote type="cite" class=""><div class="">On Sep 10, 2015, at 5:01 PM, Marius Cornea <<a href="mailto:marius@remote-lab.net" class="">marius@remote-lab.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">Hi,<br class=""><br class="">Can you ssh to the overcloud-controller-2 node and try to manually run<br class="">the commands it failed: /usr/bin/nova-manage db sync and glance-manage<br class="">--config-file=/etc/glance/glance-registry.conf db_sync? Also check the<br class="">nova and glance logs for some indications on why they might have<br class="">failed. /var/log/messages and journalctl -l -u os-collect-config could<br class="">also indicate more detailed errors.<br class=""><br class="">Thanks,<br class="">Marius<br class=""><br class="">On Wed, Sep 9, 2015 at 11:53 PM, Ignacio Bravo <<a href="mailto:ibravo@ltgfederal.com" class="">ibravo@ltgfederal.com</a>> wrote:<br class=""><blockquote type="cite" class="">I was able to move past the network issue (boot order of the servers have<br class="">them booting from the 2nd NIC as well, causing them to register with<br class="">Foreman, Ups!)<br class=""><br class="">Now the issue is deeper in the deployment:<br class=""><br class=""></blockquote></div></blockquote></div><br class=""></div></body></html>