when i use rally to create the senlin cluster ,error occured in the log of senlin-engine.
I would like to add that i Manually create a cluster is ok.
in fact,the profile has been created by rally why i would get the " The profile could not be found" error?
[rally log]
2016-10-11 16:59:36.749 5613 INFO rally.plugins.openstack.context.senlin.profiles [-] Task 8d83c8f9-7304-4186-aa87-a6b1994aace6 | Completed: Enter context: `Senlin profiles`
2016-10-11 16:59:36.766 5742 INFO rally.task.runner [-] Task 8d83c8f9-7304-4186-aa87-a6b1994aace6 | ITER: 1 START
ea32ff2a-58b4-42d1-9a67-4cc4584576b7
2016-10-11 16:59:47.311 5742 INFO rally.task.runner [-] Task 8d83c8f9-7304-4186-aa87-a6b1994aace6 | ITER: 1 END: Error GetResourceErrorStatus: Resource openstack.cluster.v1.cluster.Cluster(status=ERROR, project=9bdf543e2cca4b0982ca85ff57c9552d, domain=None, name=s_rally_8d83c8f9_UVmZSIFa, desired_capacity=1, status_reason=CLUSTER_CREATE [2871e02b] failed, created_at=None, profile_id=ea32ff2a-58b4-42d1-9a67-4cc4584576b7, updated_at=None, min_size=1, init_at=2016-10-11T16:59:41, profile_name=s_rally_8d83c8f9_LvLLB9zg, user=c6e7fcc360a24f7e9cbe430a89dcd728, timeout=3600, nodes=[u'82e73403-4f08-4d0a-8f85-62ef848cb550'], data={}, id=298aac87-c0f1-42a1-b41e-c220131cfa0c, max_size=5, metadata={}) has ERROR status.
Fault: Status in failure list set(['ERROR'])
[senlin log]
[root@zmg ~(keystone_admin)]# tail -f /var/log/senlin/senlin-engine.log |grep -i ERR
2016-10-11 16:59:43.694 1 ERROR senlin.engine.actions.base [req-41b17d57-045c-486f-b629-399e0a6da0f7 c6e7fcc360a24f7e9cbe430a89dcd728 9bdf543e2cca4b0982ca85ff57c9552d - - -] Unexpected exception occurred during action NODE_CREATE (0c33a032-fc1b-423d-ae67-c310dd50fbff) execution: The profile (ea32ff2a-58b4-42d1-9a67-4cc4584576b7) could not be found.
2016-10-11 16:59:43.906 1 ERROR senlin.engine.event [req-41b17d57-045c-486f-b629-399e0a6da0f7 c6e7fcc360a24f7e9cbe430a89dcd728 9bdf543e2cca4b0982ca85ff57c9552d - - -] node_create_82e73403 [0c33a032] NODE_CREATE - FAILED: The profile (ea32ff2a-58b4-42d1-9a67-4cc4584576b7) could not be found.
2016-10-11 16:59:47.853 1 ERROR senlin.engine.service [req-6ca3f2d0-3e13-492f-80c1-d3e1a0b843fe 82f07bdf612446559236c59b70f20af3 6ed444e4f51f4834ade159baeedc678e - default default] Profile 'ea32ff2a-58b4-42d1-9a67-4cc4584576b7' cannot be deleted.
2016-10-11 16:59:48.766 1 ERROR senlin.engine.event [req-41b17d57-045c-486f-b629-399e0a6da0f7 c6e7fcc360a24f7e9cbe430a89dcd728 9bdf543e2cca4b0982ca85ff57c9552d - - -] cluster_create_298aac87 [2871e02b] CLUSTER_CREATE - FAILED: CLUSTER_CREATE [2871e02b] failed
I guess may be it is the permissions problem.
rally/plugins/openstack/scenarios/senlin/utils.py
-----------------------------------------------
def _create_cluster(self, profile_id, desired_capacity=0, min_size=0, max_size=-1, timeout=60, metadata=None):
"""Create a new cluster from attributes.
:param profile_id: ID of profile used to create cluster
:param desired_capacity: The capacity or initial number of nodes owned by the cluster
:param min_size: The minimum number of nodes owned by the cluster
:param max_size: The maximum number of nodes owned by the cluster. -1 means no limit
:param timeout: The timeout value in minutes for cluster creation
:param metadata: A set of key value pairs to associate with the cluster
:returns: object of cluster created.
"""
attrs = { "profile_id": profile_id,
"name": self.generate_random_name(), "desired_capacity": desired_capacity, "min_size": min_size, "max_size": max_size, "metadata": metadata, "timeout": timeout
}
cluster = self.admin_clients("senlin").create_cluster(**attrs) //source code use admin_client
cluster = self.clients("senlin").create_cluster(**attrs) //when i change the code ,the problem resolved.
cluster = utils.wait_for_status( cluster, ready_statuses=["ACTIVE"], failure_statuses=["ERROR"], update_resource=self._get_cluster, timeout=CONF.benchmark.senlin_action_timeout)
After i changed the code "admin_clients" to "clients" ,the problem was not happened.
when i use rally to create the senlin cluster ,error occured in the log of senlin-engine.
I would like to add that i Manually create a cluster is ok.
in fact,the profile has been created by rally why i would get the " The profile could not be found" error?
[rally log] openstack. context. senlin. profiles [-] Task 8d83c8f9- 7304-4186- aa87-a6b1994aac e6 | Completed: Enter context: `Senlin profiles` 7304-4186- aa87-a6b1994aac e6 | ITER: 1 START 58b4-42d1- 9a67-4cc4584576 b7 7304-4186- aa87-a6b1994aac e6 | ITER: 1 END: Error GetResourceErro rStatus: Resource openstack. cluster. v1.cluster. Cluster( status= ERROR, project= 9bdf543e2cca4b0 982ca85ff57c955 2d, domain=None, name=s_ rally_8d83c8f9_ UVmZSIFa, desired_capacity=1, status_ reason= CLUSTER_ CREATE [2871e02b] failed, created_at=None, profile_ id=ea32ff2a- 58b4-42d1- 9a67-4cc4584576 b7, updated_at=None, min_size=1, init_at= 2016-10- 11T16:59: 41, profile_ name=s_ rally_8d83c8f9_ LvLLB9zg, user=c6e7fcc360 a24f7e9cbe430a8 9dcd728, timeout=3600, nodes=[ u'82e73403- 4f08-4d0a- 8f85-62ef848cb5 50'], data={}, id=298aac87- c0f1-42a1- b41e-c220131cfa 0c, max_size=5, metadata={}) has ERROR status.
2016-10-11 16:59:36.749 5613 INFO rally.plugins.
2016-10-11 16:59:36.766 5742 INFO rally.task.runner [-] Task 8d83c8f9-
ea32ff2a-
2016-10-11 16:59:47.311 5742 INFO rally.task.runner [-] Task 8d83c8f9-
Fault: Status in failure list set(['ERROR'])
[senlin log] senlin/ senlin- engine. log |grep -i ERR engine. actions. base [req-41b17d57- 045c-486f- b629-399e0a6da0 f7 c6e7fcc360a24f7 e9cbe430a89dcd7 28 9bdf543e2cca4b0 982ca85ff57c955 2d - - -] Unexpected exception occurred during action NODE_CREATE (0c33a032- fc1b-423d- ae67-c310dd50fb ff) execution: The profile (ea32ff2a- 58b4-42d1- 9a67-4cc4584576 b7) could not be found. 045c-486f- b629-399e0a6da0 f7 c6e7fcc360a24f7 e9cbe430a89dcd7 28 9bdf543e2cca4b0 982ca85ff57c955 2d - - -] node_create_ 82e73403 [0c33a032] NODE_CREATE - FAILED: The profile (ea32ff2a- 58b4-42d1- 9a67-4cc4584576 b7) could not be found. engine. service [req-6ca3f2d0- 3e13-492f- 80c1-d3e1a0b843 fe 82f07bdf6124465 59236c59b70f20a f3 6ed444e4f51f483 4ade159baeedc67 8e - default default] Profile 'ea32ff2a- 58b4-42d1- 9a67-4cc4584576 b7' cannot be deleted. 045c-486f- b629-399e0a6da0 f7 c6e7fcc360a24f7 e9cbe430a89dcd7 28 9bdf543e2cca4b0 982ca85ff57c955 2d - - -] cluster_ create_ 298aac87 [2871e02b] CLUSTER_CREATE - FAILED: CLUSTER_CREATE [2871e02b] failed
[root@zmg ~(keystone_admin)]# tail -f /var/log/
2016-10-11 16:59:43.694 1 ERROR senlin.
2016-10-11 16:59:43.906 1 ERROR senlin.engine.event [req-41b17d57-
2016-10-11 16:59:47.853 1 ERROR senlin.
2016-10-11 16:59:48.766 1 ERROR senlin.engine.event [req-41b17d57-
I guess may be it is the permissions problem. openstack/ scenarios/ senlin/ utils.py
rally/plugins/
------- ------- ------- ------- ------- ------- ----- cluster( self, profile_id, desired_capacity=0, min_size=0,
max_ size=-1, timeout=60, metadata=None):
def _create_
"""Create a new cluster from attributes.
:param profile_id: ID of profile used to create cluster
owned by the cluster
-1 means no limit
:param desired_capacity: The capacity or initial number of nodes
:param min_size: The minimum number of nodes owned by the cluster
:param max_size: The maximum number of nodes owned by the cluster.
:param timeout: The timeout value in minutes for cluster creation
:param metadata: A set of key value pairs to associate with the cluster
:returns: object of cluster created.
"profile_ id": profile_id, random_ name(),
"desired_ capacity" : desired_capacity,
"min_ size": min_size,
"max_ size": max_size,
"metadata" : metadata,
"timeout" : timeout clients( "senlin" ).create_ cluster( **attrs) //source code use admin_client "senlin" ).create_ cluster( **attrs) //when i change the code ,the problem resolved. for_status(
cluster,
ready_ statuses= ["ACTIVE" ],
failure_ statuses= ["ERROR" ],
update_ resource= self._get_ cluster,
timeout= CONF.benchmark. senlin_ action_ timeout)
"""
attrs = {
"name": self.generate_
}
cluster = self.admin_
cluster = self.clients(
cluster = utils.wait_
After i changed the code "admin_clients" to "clients" ,the problem was not happened.
+------ ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----+ ------- ------- ---+--- ------- -+----- ------- --+---- ------- ---+--- ------- ----+-- ------- --+---- ------- +------ ---+--- ----+ ------- ------- ---+--- ------- -+----- ------- --+---- ------- ---+--- ------- ----+-- ------- --+---- ------- +------ ---+--- ----+ delete_ cluster | 1.266 | 1.266 | 1.266 | 1.266 | 1.266 | 1.266 | 100.0% | 1 | create_ cluster | 64.895 | 64.895 | 64.895 | 64.895 | 64.895 | 64.895 | 100.0% | 1 | ------- ------- ---+--- ------- -+----- ------- --+---- ------- ---+--- ------- ----+-- ------- --+---- ------- +------ ---+--- ----+
| Response Times (sec) |
+------
| Action | Min (sec) | Median (sec) | 90%ile (sec) | 95%ile (sec) | Max (sec) | Avg (sec) | Success | Count |
+------
| senlin.
| senlin.
| total | 71.165 | 71.165 | 71.165 | 71.165 | 71.165 | 71.165 | 100.0% | 1 |
+------