stack.sh fails on kilo while creating roles

Bug #1520137 reported by Jaya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Unassigned

Bug Description

Environment:
Ubuntu 14.04
Openstack: Kilo release
Using Devstack clone from repository.

Running stack.sh I get the following error during role creation and listing.

| +++ openstack user create admin --password passw0rd --domain=default --or-show -f value -c id
2015-11-25 16:13:10.316 | Could not find resource default
2015-11-25 16:13:10.336 | ++ user_id=
2015-11-25 16:13:10.336 | ++ echo
2015-11-25 16:13:10.336 | + admin_user=
2015-11-25 16:13:10.336 | + local admin_role
2015-11-25 16:13:10.337 | ++ get_or_create_role admin
2015-11-25 16:13:10.337 | ++ local role_id
2015-11-25 16:13:10.338 | +++ openstack role create admin --or-show -f value -c id
2015-11-25 16:13:10.653 | Internal Server Error (HTTP 500)
2015-11-25 16:13:10.676 | ++ role_id=
2015-11-25 16:13:10.676 | ++ echo
2015-11-25 16:13:10.676 | + admin_role=
2015-11-25 16:13:10.676 | + get_or_add_user_project_role
2015-11-25 16:13:10.676 | + local user_role_id
2015-11-25 16:13:10.677 | ++ openstack role list --user --column ID --project --column Name
2015-11-25 16:13:10.677 | ++ grep ' '
2015-11-25 16:13:10.677 | ++ get_field 1
2015-11-25 16:13:10.678 | ++ local data field
2015-11-25 16:13:10.678 | ++ read data
2015-11-25 16:13:10.956 | usage: openstack role list [-h] [-f {csv,json,table,value,yaml}] [-c

COLUMN]
2015-11-25 16:13:10.956 | [--max-width <integer>] [--noindent]
2015-11-25 16:13:10.956 | [--quote {all,minimal,none,nonnumeric}]
2015-11-25 16:13:10.956 | [--domain <domain> | --project <project>]
2015-11-25 16:13:10.956 | [--user <user> | --group <group>]
2015-11-25 16:13:10.956 | [--group-domain <group-domain>]
2015-11-25 16:13:10.956 | [--project-domain <project-domain>]
2015-11-25 16:13:10.956 | [--user-domain <user-domain>] [--inherited]
2015-11-25 16:13:10.956 | openstack role list: error: argument --user: expected one argument
2015-11-16:13:10.974 | + user_role_id=
2015-11-25 16:13:10.974 | + [[ -z '' ]]
2015-11-25 16:13:10.974 | + openstack role add --user --project
2015-11-25 16:13:11.299 | usage: openstack role add [-h] [--domain <domain> | --project <project>]
2015-11-25 16:13:11.299 | [--user <user> | --group <group>]
2015-11-25 16:13:11.299 | [--group-domain <group-domain>]
2015-11-25 16:13:11.300 | [--project-domain <project-domain>]
2015-11-25 16:13:11.300 | [--user-domain <user-domain>] [--inherited]
2015-11-25 16:13:11.300 | <role>
2015-11-25 16:13:11.300 | openstack role add: error: argument --user: expected one argument
2015-11-25 16:13:11.316 | + exit_trap

I checked the openstack version:
$openstack --version
openstack 1.9.0

I tried to upgrade python-openstackclient using the below command still not able to come out of the problem:
$sudo -H pip install --upgrade python-openstackclient

best regards
viswanath

Revision history for this message
Jaya (jayachandrakasi) wrote :

I found there is no process listening on the ports 5000 or 35357

$ sudo netstat -nlap | grep -E "35357|5000"
tcp 0 0 172.17.106.30:52238 172.17.106.26:5000 TIME_WAIT -
tcp 1 0 172.17.106.30:36440 172.17.106.26:35357 CLOSE_WAIT 2956/python
tcp 0 0 172.17.106.30:52234 172.17.106.26:5000 TIME_WAIT -

Revision history for this message
Sean M. Collins (scollins) wrote :

Did you check out the stable/kilo branch of DevStack prior to running stack.sh?

Changed in devstack:
status: New → Incomplete
Revision history for this message
Jaya (jayachandrakasi) wrote : Re: [Bug 1520137] Re: stack.sh fails on kilo while creating roles
Download full text (4.1 KiB)

Hi Sean,

Thanks for reply. Can you pls elaborate your response.

best regards
viswanath

On Tue, Dec 1, 2015 at 7:01 PM, Sean M. Collins <email address hidden> wrote:

> Did you check out the stable/kilo branch of DevStack prior to running
> stack.sh?
>
> ** Changed in: devstack
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1520137
>
> Title:
> stack.sh fails on kilo while creating roles
>
> Status in devstack:
> Incomplete
>
> Bug description:
> Environment:
> Ubuntu 14.04
> Openstack: Kilo release
> Using Devstack clone from repository.
>
> Running stack.sh I get the following error during role creation and
> listing.
>
> | +++ openstack user create admin --password passw0rd --domain=default
> --or-show -f value -c id
> 2015-11-25 16:13:10.316 | Could not find resource default
> 2015-11-25 16:13:10.336 | ++ user_id=
> 2015-11-25 16:13:10.336 | ++ echo
> 2015-11-25 16:13:10.336 | + admin_user=
> 2015-11-25 16:13:10.336 | + local admin_role
> 2015-11-25 16:13:10.337 | ++ get_or_create_role admin
> 2015-11-25 16:13:10.337 | ++ local role_id
> 2015-11-25 16:13:10.338 | +++ openstack role create admin --or-show -f
> value -c id
> 2015-11-25 16:13:10.653 | Internal Server Error (HTTP 500)
> 2015-11-25 16:13:10.676 | ++ role_id=
> 2015-11-25 16:13:10.676 | ++ echo
> 2015-11-25 16:13:10.676 | + admin_role=
> 2015-11-25 16:13:10.676 | + get_or_add_user_project_role
> 2015-11-25 16:13:10.676 | + local user_role_id
> 2015-11-25 16:13:10.677 | ++ openstack role list --user --column ID
> --project --column Name
> 2015-11-25 16:13:10.677 | ++ grep ' '
> 2015-11-25 16:13:10.677 | ++ get_field 1
> 2015-11-25 16:13:10.678 | ++ local data field
> 2015-11-25 16:13:10.678 | ++ read data
> 2015-11-25 16:13:10.956 | usage: openstack role list [-h] [-f
> {csv,json,table,value,yaml}] [-c
>
> COLUMN]
> 2015-11-25 16:13:10.956 | [--max-width
> <integer>] [--noindent]
> 2015-11-25 16:13:10.956 | [--quote
> {all,minimal,none,nonnumeric}]
> 2015-11-25 16:13:10.956 | [--domain <domain>
> | --project <project>]
> 2015-11-25 16:13:10.956 | [--user <user> |
> --group <group>]
> 2015-11-25 16:13:10.956 | [--group-domain
> <group-domain>]
> 2015-11-25 16:13:10.956 | [--project-domain
> <project-domain>]
> 2015-11-25 16:13:10.956 | [--user-domain
> <user-domain>] [--inherited]
> 2015-11-25 16:13:10.956 | openstack role list: error: argument --user:
> expected one argument
> 2015-11-16:13:10.974 | + user_role_id=
> 2015-11-25 16:13:10.974 | + [[ -z '' ]]
> 2015-11-25 16:13:10.974 | + openstack role add --user --project
> 2015-11-25 16:13:11.299 | usage: openstack role add [-h] [--domain
> <domain> | --project <project>]
> 2015-11-25 16:13:11.299 | [--user <user> |
> --group <group>]
> 2015-11-25 16:13:11.299 | [--group-domain
> <group-domain...

Read more...

Revision history for this message
Sean M. Collins (scollins) wrote :

I don't know how to elaborate more than that. You stated that this was openstack kilo release. Did you clone DevStack and run stack.sh or did you check out the stable/kilo branch first?

Revision history for this message
Jaya (jayachandrakasi) wrote :
Download full text (4.1 KiB)

Hi Sean,

I did checkout stable/kilo and ran stack.sh

On Thu, Dec 3, 2015 at 7:33 AM, Sean M. Collins <email address hidden> wrote:

> I don't know how to elaborate more than that. You stated that this was
> openstack kilo release. Did you clone DevStack and run stack.sh or did
> you check out the stable/kilo branch first?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1520137
>
> Title:
> stack.sh fails on kilo while creating roles
>
> Status in devstack:
> Incomplete
>
> Bug description:
> Environment:
> Ubuntu 14.04
> Openstack: Kilo release
> Using Devstack clone from repository.
>
> Running stack.sh I get the following error during role creation and
> listing.
>
> | +++ openstack user create admin --password passw0rd --domain=default
> --or-show -f value -c id
> 2015-11-25 16:13:10.316 | Could not find resource default
> 2015-11-25 16:13:10.336 | ++ user_id=
> 2015-11-25 16:13:10.336 | ++ echo
> 2015-11-25 16:13:10.336 | + admin_user=
> 2015-11-25 16:13:10.336 | + local admin_role
> 2015-11-25 16:13:10.337 | ++ get_or_create_role admin
> 2015-11-25 16:13:10.337 | ++ local role_id
> 2015-11-25 16:13:10.338 | +++ openstack role create admin --or-show -f
> value -c id
> 2015-11-25 16:13:10.653 | Internal Server Error (HTTP 500)
> 2015-11-25 16:13:10.676 | ++ role_id=
> 2015-11-25 16:13:10.676 | ++ echo
> 2015-11-25 16:13:10.676 | + admin_role=
> 2015-11-25 16:13:10.676 | + get_or_add_user_project_role
> 2015-11-25 16:13:10.676 | + local user_role_id
> 2015-11-25 16:13:10.677 | ++ openstack role list --user --column ID
> --project --column Name
> 2015-11-25 16:13:10.677 | ++ grep ' '
> 2015-11-25 16:13:10.677 | ++ get_field 1
> 2015-11-25 16:13:10.678 | ++ local data field
> 2015-11-25 16:13:10.678 | ++ read data
> 2015-11-25 16:13:10.956 | usage: openstack role list [-h] [-f
> {csv,json,table,value,yaml}] [-c
>
> COLUMN]
> 2015-11-25 16:13:10.956 | [--max-width
> <integer>] [--noindent]
> 2015-11-25 16:13:10.956 | [--quote
> {all,minimal,none,nonnumeric}]
> 2015-11-25 16:13:10.956 | [--domain <domain>
> | --project <project>]
> 2015-11-25 16:13:10.956 | [--user <user> |
> --group <group>]
> 2015-11-25 16:13:10.956 | [--group-domain
> <group-domain>]
> 2015-11-25 16:13:10.956 | [--project-domain
> <project-domain>]
> 2015-11-25 16:13:10.956 | [--user-domain
> <user-domain>] [--inherited]
> 2015-11-25 16:13:10.956 | openstack role list: error: argument --user:
> expected one argument
> 2015-11-16:13:10.974 | + user_role_id=
> 2015-11-25 16:13:10.974 | + [[ -z '' ]]
> 2015-11-25 16:13:10.974 | + openstack role add --user --project
> 2015-11-25 16:13:11.299 | usage: openstack role add [-h] [--domain
> <domain> | --project <project>]
> 2015-11-25 16:13:11.299 | [--user <user> |
> --group <group>]
> 2015-11-25 16:13:11.299 | [--group-domain
> <...

Read more...

Revision history for this message
Sean M. Collins (scollins) wrote :

OK - but you checked out stable/kilo but you are running the most recent
version of python-openstacksdk. That may be causing the issue.
--
Sean M. Collins

Revision history for this message
Dean Troyer (dtroyer) wrote :

If master OSC does not work in stable/kilo DevStack we broke something, it should work fine.

Is this the first error in the log? We've seen this problem before, I don't recall offhand exactly what it was, but IIRC there may be an error earlier in the log than shown here.

Revision history for this message
Jaya (jayachandrakasi) wrote :
Download full text (4.1 KiB)

Hi Sean,

How to check version mismatch.

On Thu, Dec 3, 2015 at 8:53 PM, Sean M. Collins <email address hidden> wrote:

> OK - but you checked out stable/kilo but you are running the most recent
> version of python-openstacksdk. That may be causing the issue.
> --
> Sean M. Collins
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1520137
>
> Title:
> stack.sh fails on kilo while creating roles
>
> Status in devstack:
> Incomplete
>
> Bug description:
> Environment:
> Ubuntu 14.04
> Openstack: Kilo release
> Using Devstack clone from repository.
>
> Running stack.sh I get the following error during role creation and
> listing.
>
> | +++ openstack user create admin --password passw0rd --domain=default
> --or-show -f value -c id
> 2015-11-25 16:13:10.316 | Could not find resource default
> 2015-11-25 16:13:10.336 | ++ user_id=
> 2015-11-25 16:13:10.336 | ++ echo
> 2015-11-25 16:13:10.336 | + admin_user=
> 2015-11-25 16:13:10.336 | + local admin_role
> 2015-11-25 16:13:10.337 | ++ get_or_create_role admin
> 2015-11-25 16:13:10.337 | ++ local role_id
> 2015-11-25 16:13:10.338 | +++ openstack role create admin --or-show -f
> value -c id
> 2015-11-25 16:13:10.653 | Internal Server Error (HTTP 500)
> 2015-11-25 16:13:10.676 | ++ role_id=
> 2015-11-25 16:13:10.676 | ++ echo
> 2015-11-25 16:13:10.676 | + admin_role=
> 2015-11-25 16:13:10.676 | + get_or_add_user_project_role
> 2015-11-25 16:13:10.676 | + local user_role_id
> 2015-11-25 16:13:10.677 | ++ openstack role list --user --column ID
> --project --column Name
> 2015-11-25 16:13:10.677 | ++ grep ' '
> 2015-11-25 16:13:10.677 | ++ get_field 1
> 2015-11-25 16:13:10.678 | ++ local data field
> 2015-11-25 16:13:10.678 | ++ read data
> 2015-11-25 16:13:10.956 | usage: openstack role list [-h] [-f
> {csv,json,table,value,yaml}] [-c
>
> COLUMN]
> 2015-11-25 16:13:10.956 | [--max-width
> <integer>] [--noindent]
> 2015-11-25 16:13:10.956 | [--quote
> {all,minimal,none,nonnumeric}]
> 2015-11-25 16:13:10.956 | [--domain <domain>
> | --project <project>]
> 2015-11-25 16:13:10.956 | [--user <user> |
> --group <group>]
> 2015-11-25 16:13:10.956 | [--group-domain
> <group-domain>]
> 2015-11-25 16:13:10.956 | [--project-domain
> <project-domain>]
> 2015-11-25 16:13:10.956 | [--user-domain
> <user-domain>] [--inherited]
> 2015-11-25 16:13:10.956 | openstack role list: error: argument --user:
> expected one argument
> 2015-11-16:13:10.974 | + user_role_id=
> 2015-11-25 16:13:10.974 | + [[ -z '' ]]
> 2015-11-25 16:13:10.974 | + openstack role add --user --project
> 2015-11-25 16:13:11.299 | usage: openstack role add [-h] [--domain
> <domain> | --project <project>]
> 2015-11-25 16:13:11.299 | [--user <user> |
> --group <group>]
> 2015-11-25 16:13:11.299 | [--group-domain
> <group-domain>]
> 2015-11-25 16:13:11.300...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for devstack because there has been no activity for 60 days.]

Changed in devstack:
status: Incomplete → Expired
Revision history for this message
Deepika Dhiman (deepika-dhiman93) wrote :

I installed devstack stable kilo and it was successful in first go. So, according to me this bug do not exist any more.

Changed in devstack:
assignee: nobody → Deepika Dhiman (deepika-dhiman93)
status: Expired → Invalid
assignee: Deepika Dhiman (deepika-dhiman93) → nobody
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.