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: wk...@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! From: Hongbin Lu <hongbin...@huawei.com> To: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev@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-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev