Magnum installation problem with devstack kilo

Bug #1460574 reported by Baohua Yang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Invalid
Undecided
Baohua Yang
OpenStack Heat
Invalid
Undecided
Unassigned

Bug Description

I am following http://git.openstack.org/cgit/openstack/magnum/tree/doc/source/dev/dev-quickstart.rst to install magnum with openstack kilo version.

After configuring, we run ./stack.sh

At the end, there are error messages like

python update.py /opt/stack/magnum
.......
 Syncing /opt/stack/magnum/requirements.txt
2015-05-29 12:50:28.075 | 'oslo.versionedobjects' is not in global-requirements.txt
2015-05-29 12:50:28.083 | + exit_trap
2015-05-29 12:50:28.083 | + local r=1
2015-05-29 12:50:28.084 | ++ jobs -p
2015-05-29 12:50:28.085 | + jobs=
2015-05-29 12:50:28.085 | + [[ -n '' ]]
2015-05-29 12:50:28.085 | + kill_spinner
2015-05-29 12:50:28.085 | + '[' '!' -z '' ']'
2015-05-29 12:50:28.085 | + [[ 1 -ne 0 ]]
2015-05-29 12:50:28.085 | + echo 'Error on exit'
2015-05-29 12:50:28.085 | Error on exit
2015-05-29 12:50:28.085 | + [[ -z /opt/stack/logs ]]
2015-05-29 12:50:28.085 | + /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2015-05-29 12:50:28.122 | df: '/run/user/1000/gvfs': Permission denied
2015-05-29 12:50:28.165 | + exit 1

This repeats several times.

Also, some other people report the same problem with the openstack master branch.

Revision history for this message
Kai Qiang Wu(Kennan) (wkqwu) wrote :

Hi, I am not sure what did you do for kilo magnum setup ?

Could you write it down the what git clone you run and devstack configuration you did.

If you just run as

http://git.openstack.org/cgit/openstack/magnum/tree/doc/source/dev/dev-quickstart.rst

It would not against kilo branch.

So I want to know the details your run (like git command, and devstack setting and so on)

Revision history for this message
Baohua Yang (yangbaohua) wrote :

Thanks for the reply!

We clone the devstack and switch to the stable/kilo branch.

Then follow the http://git.openstack.org/cgit/openstack/magnum/tree/doc/source/dev/dev-quickstart.rst and write some local.conf to enable magnum.

After that, we run ./stack.sh.

From the error msg, do you know what component might be the cause?

Thanks!

Revision history for this message
Egor Guz (eghobo) wrote :

@yangbaohua - are you running devstack at vm (virtual box or vmware fusion)?

Revision history for this message
Kai Qiang Wu(Kennan) (wkqwu) wrote :

Hi @BaoHua,

in magnum

enable_plugin magnum https://github.com/openstack/magnum

the default it done is clone master branch,
if you test master branch with stable/kilo openstack projects. I think it could have some mess issues.

Could you use choose following two options ?

1. for devstack , use master branch, also magnum default is master branch

2. for devstack , use stable/kilo branch, and also magnum config following in local.conf

enable_plugin magnum https://github.com/openstack/magnum stable/kilo

BTW, some new feature you may could not use if you choose stable/kilo magnum branch.

Changed in magnum:
assignee: nobody → Kai Qiang Wu(Kennan) (wkqwu)
status: New → Opinion
Revision history for this message
Baohua Yang (yangbaohua) wrote :

I test the master branch (in physical machine).
Other errors happened,like

2015-06-01 10:46:56.794 | + screen -S stack -p key-access -X stuff 'sudo tail -f /var/log/apache2/keystone_access.log & echo $! >/opt/stack/status/stack/key-
'ccess.pid; fg || echo "key-access failed to start" | tee "/opt/stack/status/stack/key-access.failure"
2015-06-01 10:46:56.797 | + echo 'Waiting for keystone to start...'
2015-06-01 10:46:56.797 | Waiting for keystone to start...
2015-06-01 10:46:56.797 | + wait_for_service 60 http://9.186.100.77:5000/v2.0/
2015-06-01 10:46:56.797 | + local timeout=60
2015-06-01 10:46:56.797 | + local url=http://9.186.100.77:5000/v2.0/
2015-06-01 10:46:56.797 | + timeout 60 sh -c 'while ! curl -g -k --noproxy '\''*'\'' -s http://9.186.100.77:5000/v2.0/ >/dev/null; do sleep 1; done'
2015-06-01 10:46:57.651 | + is_service_enabled tls-proxy
2015-06-01 10:46:57.655 | + return 1
2015-06-01 10:46:57.656 | + SERVICE_ENDPOINT=http://9.186.100.77:35357/v2.0
2015-06-01 10:46:57.656 | + is_service_enabled tls-proxy
2015-06-01 10:46:57.659 | + return 1
2015-06-01 10:46:57.659 | + export OS_TOKEN=abcdefghijklmnopqrstuvwxyz
2015-06-01 10:46:57.659 | + OS_TOKEN=abcdefghijklmnopqrstuvwxyz
2015-06-01 10:46:57.659 | + export OS_URL=http://9.186.100.77:35357/v2.0
2015-06-01 10:46:57.659 | + OS_URL=http://9.186.100.77:35357/v2.0
2015-06-01 10:46:57.659 | + create_keystone_accounts
2015-06-01 10:46:57.660 | ++ get_or_create_project admin
2015-06-01 10:46:57.660 | ++ local os_cmd=openstack
2015-06-01 10:46:57.660 | ++ local domain=
2015-06-01 10:46:57.660 | ++ [[ ! -z '' ]]
2015-06-01 10:46:57.661 | +++ openstack project create admin --or-show -f value -c id
2015-06-01 10:46:59.879 | ERROR: openstack Internal Server Error (HTTP 500)
2015-06-01 10:46:59.942 | ++ local project_id=
2015-06-01 10:46:59.942 | ++ echo
2015-06-01 10:46:59.943 | + local admin_tenant=
2015-06-01 10:46:59.944 | ++ get_or_create_user admin admin
2015-06-01 10:46:59.944 | ++ [[ ! -z '' ]]
2015-06-01 10:46:59.944 | ++ local email=
2015-06-01 10:46:59.944 | ++ local os_cmd=openstack
2015-06-01 10:46:59.944 | ++ local domain=
2015-06-01 10:46:59.944 | ++ [[ ! -z '' ]]
2015-06-01 10:46:59.945 | +++ openstack user create admin --password admin --or-show -f value -c id
2015-06-01 10:47:01.435 | ERROR: openstack Internal Server Error (HTTP 500)
2015-06-01 10:47:01.498 | ++ local user_id=
2015-06-01 10:47:01.498 | ++ echo
2015-06-01 10:47:01.498 | + local admin_user=
2015-06-01 10:47:01.499 | ++ get_or_create_role admin
2015-06-01 10:47:01.500 | +++ openstack role create admin --or-show -f value -c id
2015-06-01 10:47:02.991 | ERROR: openstack Internal Server Error (HTTP 500)
2015-06-01 10:47:03.054 | ++ local role_id=
2015-06-01 10:47:03.054 | ++ echo
2015-06-01 10:47:03.054 | + local admin_role=
2015-06-01 10:47:03.054 | + get_or_add_user_project_role
2015-06-01 10:47:03.056 | ++ openstack role list --user --project --column ID --column Name
2015-06-01 10:47:03.056 | ++ grep ' '
2015-06-01 10:47:03.057 | ++ get_field 1
2015-06-01 10:47:03.057 | ++ local data field
2015-06-01 10:47:03.057 | ++ read data
...

Revision history for this message
Kai Qiang Wu(Kennan) (wkqwu) wrote :

Hi @BaoHua, if I understand correctly, you run this master branch on the old machine(which run against stable/kilo before)

I tested yesterday with master on that latest code, stack all finished sucessfully.

It seemed your keystone have some issue hit.

Revision history for this message
Baohua Yang (yangbaohua) wrote :

@Kai qiang

Yes, I use the same server.

But I have run the ./clean.sh and reboot it before trying the new installation.

Do you have any suggestion how to make it fresh environment?

Thanks!

Revision history for this message
Kai Qiang Wu(Kennan) (wkqwu) wrote :

Hi @BaoHua, I usually setup with fresh VM in our cloud env.

For devstack clean.up, I not think it would have totally fresh. Some messing and anonying issue can happen.

If you want to use that way(run devstack again and again with different branch), you may need check the issue(above seems like keystone issue) in #openstack-keystone channel. They may help you about it. I think

Revision history for this message
Baohua Yang (yangbaohua) wrote :

Now I try it again with the master branch for a fresh installation.

Another error repeats.

015-06-02 05:10:29.193 | + /usr/local/bin/keystone-manage db_sync
2015-06-02 05:10:29.428 | Traceback (most recent call last):
2015-06-02 05:10:29.429 | File "/usr/local/bin/keystone-manage", line 4, in <module>
2015-06-02 05:10:29.429 | __import__('pkg_resources').require('keystone==2014.2.3.dev13')
2015-06-02 05:10:29.429 | File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3074, in <module>
2015-06-02 05:10:29.429 | @_call_aside
2015-06-02 05:10:29.429 | File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3060, in _call_aside
2015-06-02 05:10:29.430 | f(*args, **kwargs)
2015-06-02 05:10:29.430 | File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3087, in _initialize_master_working_set
2015-06-02 05:10:29.430 | working_set = WorkingSet._build_master()
2015-06-02 05:10:29.430 | File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 647, in _build_master
2015-06-02 05:10:29.430 | return cls._build_from_requirements(__requires__)
2015-06-02 05:10:29.430 | File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 660, in _build_from_requirements
2015-06-02 05:10:29.430 | dists = ws.resolve(reqs, Environment())
2015-06-02 05:10:29.430 | File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 833, in resolve
2015-06-02 05:10:29.431 | raise DistributionNotFound(req, requirers)
2015-06-02 05:10:29.431 | pkg_resources.DistributionNotFound: The 'requests!=2.4.0,<=2.2.1,>=2.1.0' distribution was not found and is required by keystonemiddleware
2015-06-02 05:10:29.443 | + exit_trap
2015-06-02 05:10:29.444 | + local r=1
2015-06-02 05:10:29.444 | ++ jobs -p
2015-06-02 05:10:29.445 | + jobs=
2015-06-02 05:10:29.445 | + [[ -n '' ]]
2015-06-02 05:10:29.445 | + kill_spinner
2015-06-02 05:10:29.445 | + '[' '!' -z '' ']'
2015-06-02 05:10:29.445 | + [[ 1 -ne 0 ]]
2015-06-02 05:10:29.445 | + echo 'Error on exit'
2015-06-02 05:10:29.445 | Error on exit
2015-06-02 05:10:29.445 | + [[ -z /opt/stack/logs ]]
2015-06-02 05:10:29.445 | + /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2015-06-02 05:10:29.803 | + exit 1

This keeps happening even I install the keystonemiddleware manually.

Revision history for this message
Baohua Yang (yangbaohua) wrote :

Finally, after removing all codes of openstack and devstack.

It seems works with the master branch.

Thanks for all suggestions!

Changed in magnum:
assignee: Kai Qiang Wu(Kennan) (wkqwu) → Baohua Yang (yangbaohua)
status: Opinion → In Progress
Revision history for this message
Baohua Yang (yangbaohua) wrote :
Download full text (4.0 KiB)

Another error happens to start the heat-engine with devstack latest master.

/opt/stack/heat/bin/heat-engine --config-file=/etc/heat/heat.conf & echo $! >/opt/stack/status/stack/h-eng.pid; fg || echo "h-eng failed to start" | tee "/opt/stack/status/stack/h-eng.failure"
[1] 29707
/opt/stack/heat/bin/heat-engine --config-file=/etc/heat/heat.conf
2015-06-03 15:11:17.093 29707 CRITICAL heat-engine [-] ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option
2015-06-03 15:11:17.093 29707 ERROR heat-engine Traceback (most recent call last):
2015-06-03 15:11:17.093 29707 ERROR heat-engine File "/opt/stack/heat/bin/heat-engine", line 73, in <module>
2015-06-03 15:11:17.093 29707 ERROR heat-engine srv = engine.EngineService(cfg.CONF.host, rpc_api.ENGINE_TOPIC)
2015-06-03 15:11:17.093 29707 ERROR heat-engine File "/opt/stack/heat/heat/engine/service.py", line 274, in __init__
2015-06-03 15:11:17.093 29707 ERROR heat-engine resources.initialise()
2015-06-03 15:11:17.093 29707 ERROR heat-engine File "/opt/stack/heat/heat/engine/resources/__init__.py", line 61, in initialise
2015-06-03 15:11:17.093 29707 ERROR heat-engine _load_global_environment(global_env)
2015-06-03 15:11:17.093 29707 ERROR heat-engine File "/opt/stack/heat/heat/engine/resources/__init__.py", line 66, in _load_global_environment
2015-06-03 15:11:17.093 29707 ERROR heat-engine _load_global_resources(env)
2015-06-03 15:11:17.093 29707 ERROR heat-engine File "/opt/stack/heat/heat/engine/resources/__init__.py", line 76, in _load_global_resources
2015-06-03 15:11:17.093 29707 ERROR heat-engine manager = plugin_manager.PluginManager(__name__)
2015-06-03 15:11:17.093 29707 ERROR heat-engine File "/opt/stack/heat/heat/engine/plugin_manager.py", line 58, in __init__
2015-06-03 15:11:17.093 29707 ERROR heat-engine self.modules = list(modules())
2015-06-03 15:11:17.093 29707 ERROR heat-engine File "/opt/stack/heat/heat/common/plugin_loader.py", line 98, in load_modules
2015-06-03 15:11:17.093 29707 ERROR heat-engine module = _import_module(importer, module_name, package)
2015-06-03 15:11:17.093 29707 ERROR heat-engine File "/opt/stack/heat/heat/common/plugin_loader.py", line 74, in _import_module
2015-06-03 15:11:17.093 29707 ERROR heat-engine module = loader.load_module(module_name)
2015-06-03 15:11:17.093 29707 ERROR heat-engine File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
2015-06-03 15:11:17.093 29707 ERROR heat-engine mod = imp.load_module(fullname, self.file, self.filename, self.etc)
2015-06-03 15:11:17.093 29707 ERROR heat-engine File "/opt/stack/heat/heat/engine/resources/autoscaling.py", line 30, in <module>
2015-06-03 15:11:17.093 29707 ERROR heat-engine File "/opt/stack/heat/heat/engine/stack_resource.py", line 28, in <module>
2015-06-03 15:11:17.093 29707 ERROR heat-engine File "/opt/stack/heat/heat/openstack/common/log.py", line 192, in <module>
2015-06-03 15:11:17.093 29707 ERROR heat-engine File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 1791, in __inner
2015-06-03 15:11:17.093 29707 ERROR heat-engine result = f(self, *args, **kw...

Read more...

Revision history for this message
Steve Baker (steve-stevebaker) wrote :

are you sure you don't have multiple versions of oslo.config installed? (such as a distro package plus one or more pip package versions?)

Changed in heat:
status: New → Invalid
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

This doesn't look like a bug, more like an environment specific support request.

Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-1
Changed in magnum:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.