[openstack-dev] [magnum] Failed to create trustee %(username) in domain $(domain_id)
Hongbin Lu
hongbin.lu at huawei.com
Fri Feb 26 15:40:43 UTC 2016
Agreed.
Every new features should be introduced in a backward-compatible way if possible. If new change will break existing version, it should be properly versioned and/or follow the corresponding deprecation process. Please feel free to ask for clarification if the procedure is unclear.
Best regards,
Hongbin
From: Kai Qiang Wu [mailto:wkqwu at cn.ibm.com]
Sent: February-25-16 8:43 PM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [magnum] Failed to create trustee %(username) in domain $(domain_id)
Thanks Hongbin for your info.
I really think it is not good way for new feature introduced.
As new feature introduced often break old work. it more often better with add-in feature is plus, old work still funciton.
Or at least, the error should say "swarm bay now requires trust to work, please use trust related access information before deploy a new swarm bay"
Thanks
--------------------------------------------------------------------------------
Kai Qiang Wu (吴开强 Kennan)
IBM China System and Technology Lab, Beijing
E-mail: wkqwu at cn.ibm.com<mailto:wkqwu at cn.ibm.com>
Tel: 86-10-82451647
Address: Building 28(Ring Building), ZhongGuanCun Software Park,
No.8 Dong Bei Wang West Road, Haidian District Beijing P.R.China 100193
--------------------------------------------------------------------------------
Follow your heart. You are miracle!
[Inactive hide details for Hongbin Lu ---26/02/2016 08:02:23 am---Hi team, FYI, you might encounter the following error if you p]Hongbin Lu ---26/02/2016 08:02:23 am---Hi team, FYI, you might encounter the following error if you pull from master recently:
From: Hongbin Lu <hongbin.lu at huawei.com<mailto:hongbin.lu at huawei.com>>
To: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>>
Date: 26/02/2016 08:02 am
Subject: [openstack-dev] [magnum] Failed to create trustee %(username) in domain $(domain_id)
________________________________
Hi team,
FYI, you might encounter the following error if you pull from master recently:
magnum bay-create --name swarmbay --baymodel swarmbaymodel --node-count 1
Create for bay swarmbay failed: Failed to create trustee %(username) in domain $(domain_id) (HTTP 500)"
This is due to a recent commit that added support for trust. In case you don’t know, this error can be resolved by running the following steps:
# 1. create the necessary domain and user:
export OS_TOKEN=password
export OS_URL=http://127.0.0.1:5000/v3
export OS_IDENTITY_API_VERSION=3
openstack domain create magnum
openstack user create trustee_domain_admin --password=secret --domain=magnum
openstack role add --user=trustee_domain_admin --domain=magnum admin
# 2. populate configs
source /opt/stack/devstack/functions
export MAGNUM_CONF=/etc/magnum/magnum.conf
iniset $MAGNUM_CONF trust trustee_domain_id $(openstack domain show magnum | awk '/ id /{print $4}')
iniset $MAGNUM_CONF trust trustee_domain_admin_id $(openstack user show trustee_domain_admin | awk '/ id /{print $4}')
iniset $MAGNUM_CONF trust trustee_domain_admin_password secret
# 3. screen -r stack, and restart m-api and m-cond
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe<mailto:OpenStack-dev-request at lists.openstack.org?subject:unsubscribe>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160226/01cef627/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 105 bytes
Desc: image001.gif
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160226/01cef627/attachment-0001.gif>
More information about the OpenStack-dev
mailing list