<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Hi Radosiaw:</span><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> Thanks for answer.</div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> But, I got another issue while deploy OpenStack:stein with adding “nova_dev_mode” in globals.yml</div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> Please refer to log listed below for detail.</div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> The placement where I face the problem is </div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> "nova : Running Nova bootstrap container”</div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> ...</div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> "AttributeError: 'module' object has no attribute 'COMPUTE_IMAGE_TYPE_AKI'"</div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> I can’t find any related code with it. </div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> Need your help to handle this, many thanks.</div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> </div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> Kolla-ansible vision : stable/stein </div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> Ansible version : stable/stein</div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> Environment: intel Grantley i7-6950</div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> Method to reproduce : $ kolla-ansible -i all-in-one deploy</div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div class=""><div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class="">TASK [nova : Running Nova bootstrap container] *********************************</span></font></div><div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class="">fatal: [chantyu -> chantyu]: FAILED! => {"changed": true, "msg": "Container exited with non-zero return code 1", "rc": 1, "stderr": "+ sudo -E kolla_set_configs\nINFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json\nINFO:__main__:Validating config file\nINFO:__main__:Kolla config strategy set to: COPY_ALWAYS\nINFO:__main__:Copying service configuration files\nINFO:__main__:Copying /var/lib/kolla/config_files/nova.conf to /etc/nova/nova.conf\nINFO:__main__:Setting permission for /etc/nova/nova.conf\nINFO:__main__:Writing out command to execute\nINFO:__main__:Setting permission for /var/log/kolla/nova\nINFO:__main__:Setting permission for /var/log/kolla/nova/nova-manage.log\nINFO:__main__:Setting permission for /var/log/kolla/nova/nova-conductor.log\nINFO:__main__:Setting permission for /var/log/kolla/nova/nova-scheduler.log\nINFO:__main__:Setting permission for /var/log/kolla/nova/nova-consoleauth.log\nINFO:__main__:Setting permission for /var/log/kolla/nova/nova-novncproxy.log\nINFO:__main__:Setting permission for /var/log/kolla/nova/nova-serialproxy.log\nINFO:__main__:Setting permission for /var/log/kolla/nova/nova-api.log\nINFO:__main__:Setting permission for /var/log/kolla/nova/nova-compute.log\nINFO:__main__:Setting permission for /var/log/kolla/nova/privsep-helper.log\n++ cat /run_command\n+ CMD=nova-api\n+ ARGS=\n+ [[ ! -n '' ]]\n+ . kolla_extend_start\n++ [[ ! -d /var/log/kolla/nova ]]\n+++ stat -c %a /var/log/kolla/nova\n++ [[ 2755 != \\7\\5\\5 ]]\n++ chmod 755 /var/log/kolla/nova\n++ . /usr/local/bin/kolla_nova_extend_start\n+++ [[ -n '' ]]\n+++ [[ -n 0 ]]\n+++ nova-manage api_db sync\n/var/lib/kolla/venv/lib/python2.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use \"pip install psycopg2-binary\" instead. For details see: <<a href="http://initd.org/psycopg/docs/install.html#binary-install-from-pypi" class="">http://initd.org/psycopg/docs/install.html#binary-install-from-pypi</a>>.\n \"\"\")\nTraceback (most recent call last):\n File \"/var/lib/kolla/venv/bin/nova-manage\", line 6, in <module>\n from nova.cmd.manage import main\n File \"/var/lib/kolla/venv/lib/python2.7/site-packages/nova/cmd/manage.py\", line 51, in <module>\n from nova.compute import api as compute_api\n File \"/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/api.py\", line 40, in <module>\n from nova import block_device\n File \"/var/lib/kolla/venv/lib/python2.7/site-packages/nova/block_device.py\", line 26, in <module>\n from nova.virt import driver\n File \"/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/driver.py\", line 115, in <module>\n \"supports_image_type_aki\": os_traits.COMPUTE_IMAGE_TYPE_AKI,\nAttributeError: 'module' object has no attribute 'COMPUTE_IMAGE_TYPE_AKI'\n", "stderr_lines": ["+ sudo -E kolla_set_configs", "INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json", "INFO:__main__:Validating config file", "INFO:__main__:Kolla config strategy set to: COPY_ALWAYS", "INFO:__main__:Copying service configuration files", "INFO:__main__:Copying /var/lib/kolla/config_files/nova.conf to /etc/nova/nova.conf", "INFO:__main__:Setting permission for /etc/nova/nova.conf", "INFO:__main__:Writing out command to execute", "INFO:__main__:Setting permission for /var/log/kolla/nova", "INFO:__main__:Setting permission for /var/log/kolla/nova/nova-manage.log", "INFO:__main__:Setting permission for /var/log/kolla/nova/nova-conductor.log", "INFO:__main__:Setting permission for /var/log/kolla/nova/nova-scheduler.log", "INFO:__main__:Setting permission for /var/log/kolla/nova/nova-consoleauth.log", "INFO:__main__:Setting permission for /var/log/kolla/nova/nova-novncproxy.log", "INFO:__main__:Setting permission for /var/log/kolla/nova/nova-serialproxy.log", "INFO:__main__:Setting permission for /var/log/kolla/nova/nova-api.log", "INFO:__main__:Setting permission for /var/log/kolla/nova/nova-compute.log", "INFO:__main__:Setting permission for /var/log/kolla/nova/privsep-helper.log", "++ cat /run_command", "+ CMD=nova-api", "+ ARGS=", "+ [[ ! -n '' ]]", "+ . kolla_extend_start", "++ [[ ! -d /var/log/kolla/nova ]]", "+++ stat -c %a /var/log/kolla/nova", "++ [[ 2755 != \\7\\5\\5 ]]", "++ chmod 755 /var/log/kolla/nova", "++ . /usr/local/bin/kolla_nova_extend_start", "+++ [[ -n '' ]]", "+++ [[ -n 0 ]]", "+++ nova-manage api_db sync", "/var/lib/kolla/venv/lib/python2.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use \"pip install psycopg2-binary\" instead. For details see: <<a href="http://initd.org/psycopg/docs/install.html#binary-install-from-pypi" class="">http://initd.org/psycopg/docs/install.html#binary-install-from-pypi</a>>.", " \"\"\")", "Traceback (most recent call last):", " File \"/var/lib/kolla/venv/bin/nova-manage\", line 6, in <module>", " from nova.cmd.manage import main", " File \"/var/lib/kolla/venv/lib/python2.7/site-packages/nova/cmd/manage.py\", line 51, in <module>", " from nova.compute import api as compute_api", " File \"/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/api.py\", line 40, in <module>", " from nova import block_device", " File \"/var/lib/kolla/venv/lib/python2.7/site-packages/nova/block_device.py\", line 26, in <module>", " from nova.virt import driver", " File \"/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/driver.py\", line 115, in <module>", " \"supports_image_type_aki\": os_traits.COMPUTE_IMAGE_TYPE_AKI,", "AttributeError: 'module' object has no attribute 'COMPUTE_IMAGE_TYPE_AKI'"], "stdout": "", "stdout_lines": []}</span></font></div><div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class=""></span></font></div><div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class="">NO MORE HOSTS LEFT *************************************************************</span></font></div><div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class=""></span></font></div><div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class="">PLAY RECAP *********************************************************************</span></font></div><div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class="">chantyu : ok=245 changed=8 unreachable=0 failed=1 skipped=125 rescued=0 ignored=0 </span></font></div><div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class=""></span></font></div><div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class="">Command failed ansible-playbook -i ../../all-in-one -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla -e kolla_action=deploy /home/openstack/src/kolla-ansible/ansible/site.yml </span></font></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class=""></div></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">Radosław Piliszek <<a href="mailto:radoslaw.piliszek@gmail.com" class="">radoslaw.piliszek@gmail.com</a>> 於 2019年10月16日 下午7:50 寫道:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hi Yu,</div><div class=""><br class=""></div><div class="">you want to read: <a href="https://docs.openstack.org/kolla-ansible/latest/contributor/kolla-for-openstack-development.html" class="">https://docs.openstack.org/kolla-ansible/latest/contributor/kolla-for-openstack-development.html</a></div><div class=""><br class=""></div><div class="">In your case you should set:<br class=""></div><div class=""> nova_dev_mode: yes<br class=""></div><div class="">in globals.yml<br class=""></div><div class=""><br class=""></div><div class="">Kind regards,</div><div class="">Radek<br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">śr., 16 paź 2019 o 13:10 <a href="mailto:yu.chengde@99cloud.net" class="">yu.chengde@99cloud.net</a> <<a href="mailto:yu.chengde@99cloud.net" class="">yu.chengde@99cloud.net</a>> napisał(a):<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi, <br class="">
I have deployed a stein version openstack on server thought Kolla-ansible method. <br class="">
Then, I git clone the nova code, and ready to do coding in " nova/nova/conf/compute.py"<br class="">
However, many of nova containers include this file. <br class="">
So, I want to know that I should modify them all, or just pick a specific one.<br class="">
Thanks<br class="">
<br class="">
<br class="">
[root@chantyu kolla-ansible]# docker ps | grep nova<br class="">
05f72e539974 kolla/centos-source-nova-compute:stein "dumb-init --single-…" 28 hours ago Up 2 hours nova_compute<br class="">
7393a7d566ee kolla/centos-source-nova-libvirt:stein "dumb-init --single-…" 28 hours ago Up 5 hours nova_libvirt<br class="">
9d8357cfa334 kolla/centos-source-nova-scheduler:stein "dumb-init --single-…" 32 hours ago Up 3 hours nova_scheduler<br class="">
085b9da918df kolla/centos-source-nova-api:stein "dumb-init --single-…" 6 days ago Up 3 hours nova_api<br class="">
b80e9503e93e kolla/centos-source-nova-serialproxy:stein "dumb-init --single-…" 6 days ago Up 3 hours nova_serialproxy<br class="">
c15d41823a22 kolla/centos-source-nova-novncproxy:stein "dumb-init --single-…" 6 days ago Up 3 hours nova_novncproxy<br class="">
c30e47cd56c6 kolla/centos-source-nova-consoleauth:stein "dumb-init --single-…" 6 days ago Up 3 hours nova_consoleauth<br class="">
b7d5e9ba1f11 kolla/centos-source-nova-ssh:stein "dumb-init --single-…" 7 days ago Up 5 hours nova_ssh<br class="">
3f81cd0a97ce kolla/centos-source-nova-conductor:stein "dumb-init --single-…" 7 days ago Up 3 hours nova_conductor<br class="">
[root@chantyu kolla-ansible]#<br class="">
</blockquote></div>
</div></blockquote></div><br class=""></div></body></html>