Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Trove Error creating security group for instance(Newton)

**when i create database use "trove create mysql_instance_1 6 --size 5 --databases myDB     --users userA:password --datastore_version mysql-5.6     --datastore mysql"**

    my trove version is
     [root@control ~]# trove --version
    2.5.0

    my contronl  version is Centos7.2  

trove-taskmanager.log







    2016-12-09 22:22:38.473 5294 DEBUG oslo_messaging._drivers.amqpdriver [-] received message with unique_id: 6daa191c8e364f49a3e465206a4cd312 __call__ /usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py:196
    2016-12-09 22:22:38.509 5294 DEBUG trove.instance.models [-] Instance 9aa9c3a3-22e8-4225-8e7d-2626459abf99 service status is new. load_instance /usr/lib/python2.7/site-packages/trove/instance/models.py:526
    2016-12-09 22:22:38.517 5294 INFO trove.taskmanager.models [-] Creating instance 9aa9c3a3-22e8-4225-8e7d-2626459abf99.
    2016-12-09 22:22:38.647 5294 DEBUG trove.db.models [-] Saving SecurityGroup: {u'updated': datetime.datetime(2016, 12, 9, 14, 22, 38, 647132), '_sa_instance_state': <sqlalchemy.orm.state.InstanceState object at 0x40c3bd0>, u'description': u'Security Group for 9aa9c3a3-22e8-4225-8e7d-2626459abf99', u'created': datetime.datetime(2016, 12, 9, 14, 22, 38, 646961), u'deleted': False, u'tenant_id': u'3855a36ccf2e48be90bd63ac187977a9', 'errors': {}, u'user': u'0aeab4d682344a6b9a8c4ec17d6111db', u'id': u'3699be8b-3347-4f5c-8444-29fec138d21b', u'name': u'SecGroup_9aa9c3a3-22e8-4225-8e7d-2626459abf99'} save /usr/lib/python2.7/site-packages/trove/db/models.py:62
    2016-12-09 22:22:38.667 5294 DEBUG trove.db.models [-] Saving SecurityGroupInstanceAssociation: {u'updated': datetime.datetime(2016, 12, 9, 14, 22, 38, 667258), '_sa_instance_state': <sqlalchemy.orm.state.InstanceState object at 0x40c31d0>, u'created': datetime.datetime(2016, 12, 9, 14, 22, 38, 667141), u'deleted': False, u'security_group_id': u'3699be8b-3347-4f5c-8444-29fec138d21b', u'instance_id': u'9aa9c3a3-22e8-4225-8e7d-2626459abf99', 'errors': {}, u'id': 'b27591a1-6bd9-488c-a32a-d2996111b9d0'} save /usr/lib/python2.7/site-packages/trove/db/models.py:62
    2016-12-09 22:22:38.881 5294 DEBUG trove.db.models [-] Saving SecurityGroupRule: {u'updated': datetime.datetime(2016, 12, 9, 14, 22, 38, 881423), '_sa_instance_state': <sqlalchemy.orm.state.InstanceState object at 0x428ead0>, u'protocol': 'tcp', 'errors': {}, u'created': datetime.datetime(2016, 12, 9, 14, 22, 38, 881243), u'deleted': False, u'to_port': 3306, u'from_port': 3306, u'cidr': '0.0.0.0/0', u'group_id': u'3699be8b-3347-4f5c-8444-29fec138d21b', u'id': u'9a57180a-2813-4051-b6be-ec3a2f2662e2'} save /usr/lib/python2.7/site-packages/trove/db/models.py:62
    2016-12-09 22:22:38.901 5294 ERROR trove.taskmanager.models [-] Error creating security group for instance: 9aa9c3a3-22e8-4225-8e7d-2626459abf99
    From port must be an integer.
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 388, in create_instance
        security_groups = self._create_secgroup(datastore_manager)
      File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 1015, in _create_secgroup
        self._create_rules(security_group, None, 'icmp')
      File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 1036, in _create_rules
        cidr, self.context)
      File "/usr/lib/python2.7/site-packages/trove/extensions/security_group/models.py", line 151, in create_sec_group_rule
        context=context)
      File "/usr/lib/python2.7/site-packages/trove/extensions/security_group/models.py", line 243, in add_rule
        sec_group_id, protocol, from_port, to_port, cidr)
      File "/usr/lib/python2.7/site-packages/trove/network/nova.py", line 68, in add_security_group_rule
        cidr=cidr)
      File "/usr/lib/python2.7/site-packages/novaclient/api_versions.py", line 443, in wrapped
        return decorated(*a, **k)
      File "/usr/lib/python2.7/site-packages/novaclient/api_versions.py", line 402, in substitution
        return methods[-1].func(obj, *args, **kwargs)
      File "/usr/lib/python2.7/site-packages/novaclient/v2/security_group_rules.py", line 62, in create
        raise exceptions.CommandError(_("From port must be an integer."))
    CommandError: From port must be an integer.
    2016-12-09 22:22:38.908 5294 DEBUG trove.db.models [-] Saving DBInstance: {u'cluster_id': None, u'shard_id': None, u'deleted_at': None, u'id': u'9aa9c3a3-22e8-4225-8e7d-2626459abf99', u'datastore_version_id': u'ca9d1163-009d-47f2-83d7-072ed3203c57', 'errors': {}, u'hostname': None, u'server_status': None, u'task_description': 'Build error: Secgroup or rule.', u'volume_size': 5, u'type': None, u'updated': datetime.datetime(2016, 12, 9, 14, 22, 38, 908108), '_sa_instance_state': <sqlalchemy.orm.state.InstanceState object at 0x4298f90>, u'deleted': 0, u'configuration_id': None, u'volume_id': None, u'slave_of_id': None, u'task_start_time': None, u'name': u'mysql_instance_1', u'task_id': 83, u'created': datetime.datetime(2016, 12, 9, 14, 22, 38), u'tenant_id': u'3855a36ccf2e48be90bd63ac187977a9', u'compute_instance_id': None, u'flavor_id': u'6'} save /usr/lib/python2.7/site-packages/trove/db/models.py:62
    2016-12-09 22:22:38.925 5294 DEBUG trove.common.notification [-] Sending event: dbaas.instance_create.error, {'client_ip': u'192.168.15.67', 'server_type': u'taskmanager', 'tenant_id': u'3855a36ccf2e48be90bd63ac187977a9', 'exception': ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 386, in create_instance\n    locality)\n', '  File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 366, in _create_instance\n    scheduler_hints)\n', '  File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 393, in create_instance\n    self._log_and_raise(e, msg, err)\n', '  File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 861, in _log_and_raise\n    raise TroveError(message=full_message)\n', 'TroveError: Error creating security group for instance: 9aa9c3a3-22e8-4225-8e7d-2626459abf99\nFrom port must be an integer.\n'], 'instance_id': u'9aa9c3a3-22e8-4225-8e7d-2626459abf99', 'server_ip': u'192.168.15.67:8779', 'request_id': u'req-27086e6a-e6fe-48b8-8eaa-2a3464af79e3', 'message': 'Error creating security group for instance: 9aa9c3a3-22e8-4225-8e7d-2626459abf99\nFrom port must be an integer.'} _notify /usr/lib/python2.7/site-packages/trove/common/notification.py:405
    2016-12-09 22:22:38.936 5294 DEBUG trove.db.models [-] Saving DBInstanceFault: {u'updated': datetime.datetime(2016, 12, 9, 14, 22, 38, 936468), '_sa_instance_state': <sqlalchemy.orm.state.InstanceState object at 0x4159bd0>, u'created': datetime.datetime(2016, 12, 9, 14, 22, 38, 936333), u'deleted': False, u'instance_id': u'9aa9c3a3-22e8-4225-8e7d-2626459abf99', 'errors': {}, u'details': u'Server type: taskmanager\nTraceback (most recent call last):\n  File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 386, in create_instance\n    locality)\n  File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 366, in _create_instance\n    scheduler_hints)\n  File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 393, in create_instance\n    self._log_and_raise(e, msg, err)\n  File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 861, in _log_and_raise\n    raise TroveError(message=full_message)\nTroveError:\n    Error creating security group for instance:\n    9aa9c3a3-22e8-4225-8e7d-2626459abf99\nFrom port must be an integer.\n', u'message': 'Error creating security group for instance:\n    9aa9c3a3-22e8-4225-8e7d-2626459abf99\nFrom port must be an integer.', u'id': '7cf432bc-8030-4762-a837-28500214d46f'} save /usr/lib/python2.7/site-packages/trove/db/models.py:62
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server [-] Exception during message handling
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 133, in _process_incoming
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 150, in dispatch
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 121, in _do_dispatch
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 154, in wrapper
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server     return f(*args, **kwargs)
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 386, in create_instance
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server     locality)
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 366, in _create_instance
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server     scheduler_hints)
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 393, in create_instance
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server     self._log_and_raise(e, msg, err)
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 861, in _log_and_raise
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server     raise TroveError(message=full_message)
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server TroveError: Error creating security group for instance: 9aa9c3a3-22e8-4225-8e7d-2626459abf99
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server From port must be an integer.
    2016-12-09 22:22:38.951 5294 ERROR oslo_messaging.rpc.server 
    2016-12-09 22:22:40.987 5294 DEBUG oslo_service.periodic_task [-] Running periodic task Manager.publish_exists_event run_periodic_tasks /usr/lib/python2.7/site-packages/oslo_service/periodic_task.py:215
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task [-] Error during Manager.publish_exists_event
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task Traceback (most recent call last):
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/oslo_service/periodic_task.py", line 220, in run_periodic_tasks
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task     task(self, context)
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 429, in publish_exists_event
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task     self.admin_context)
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/trove/extensions/mgmt/instances/models.py", line 178, in publish_exist_events
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task     notifications = transformer()
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/trove/extensions/mgmt/instances/models.py", line 271, in __call__
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task     client=self.nova_client)
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/trove/extensions/mgmt/instances/models.py", line 40, in load_mgmt_instances
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task     mgmt_servers = client.servers.list(search_opts={'all_tenants': 1})
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 835, in list
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task     "servers")
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 249, in _list
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task     resp, body = self.api.client.get(url)
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 480, in get
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task     return self._cs_request(url, 'GET', **kwargs)
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 467, in _cs_request
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task     self.authenticate()
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 619, in authenticate
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task     self._v2_auth(auth_url)
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 684, in _v2_auth
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task     return self._authenticate(url, body)
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 697, in _authenticate
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task     **kwargs)
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 431, in _time_request
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task     resp, body = self.request(url, method, **kwargs)
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 425, in request
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task     raise exceptions.from_response(resp, body, url, method)
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task NotFound: The resource could not be found. (HTTP 404)
    2016-12-09 22:22:41.004 5294 ERROR oslo_service.periodic_task 
    ---------------