Making a project as default project

asked 2015-12-16 11:27:15 -0600

Pradip gravatar image

Hello,

Just created a Monasca project. When running a CLI, getting an error as follows:

stack@openstack2:~/devstack$ monasca alarm-list
User does not have a default project. You must provide a project id using --os-project-id or via env[OS_PROJECT_ID], or you must provide a project name using --os-project-name or via env[OS_PROJECT_NAME] and a project domain using --os-domain-name, via env[OS_DOMAIN_NAME],  using --os-domain-id or via env[OS_DOMAIN_ID]

Here is some relevant information. I did a '. openrc admin' after ./stach.sh run.

stack@openstack2:~/devstack$ . openrc admin
stack@openstack2:~/devstack$ openstack user list
+----------------------------------+---------------+
| ID                               | Name          |
+----------------------------------+---------------+
| 38d850980e0e410689b2e97057c0ca33 | mini-mon      |
| 7b225e2458214d26918532c4e23df78f | alt_demo      |
| 89c99167ab084b238b870b64976bd9af | admin         |
| 94a1a8006fb14f88b1023cc28fb2f451 | monasca-agent |
| a01c8af1c386407ea86442e3fe1c53b6 | demo          |
+----------------------------------+---------------+
stack@openstack2:~/devstack$ openstack project list
+----------------------------------+--------------------+
| ID                               | Name               |
+----------------------------------+--------------------+
| 5fc62022661d4aef961fc9115c8892c5 | admin              |
| 8c0b05f413704967a35e8a058ddca421 | alt_demo           |
| a6cfcfc77ae04f5a9602a87fe6246b38 | service            |
| b6ae605c00694c2687545170631cbdcc | mini-mon           |
| c3892cb78154419f8fb8fa02d0bf3486 | demo               |
| eb9a40a357f34cc5b2ff2b02710a5a9c | invisible_to_admin |
+----------------------------------+--------------------+
stack@openstack2:~/devstack$ openstack endpoint list
+----------------------------------+-----------+--------------+--------------+
| ID                               | Region    | Service Name | Service Type |
+----------------------------------+-----------+--------------+--------------+
| bbbc87d63f9544159e4dc2011c302d27 | RegionOne | monasca      | monitoring   |
| 32a1a17b7c374b168066c29a3cc76058 | RegionOne | keystone     | identity     |
+----------------------------------+-----------+--------------+--------------+
edit retag flag offensive close merge delete