Ask Your Question
0

Trove Error creating security group for instance

asked 2016-11-13 05:39:42 -0500

Erik gravatar image

updated 2016-11-13 06:11:13 -0500

trying to make trove working i used http://docs.openstack.org/project-ins... i upload an image from http://tarballs.openstack.org/trove/i... trying to create new db

trove create mysql_instance_1 751fac89-5d4c-44da-ad31-32e46575fa88 --size 5 --databases myDB     --users openstack:openstack --datastore_version mysql-5.6     --datastore mysql --nic net-id=57e35263-60b4-4764-bc8c-ab72b997639d

get this error in the log

2016-11-13 13:36:46.264 7164 ERROR trove.taskmanager.models [-] Error creating security group for instance: 0a13ef4e-ea1a-4c27-b316-80ef448f4923
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server [-] Exception during message handling
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 133, in _process_incoming
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 150, in dispatch
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 121, in _do_dispatch
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 154, in wrapper
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server     return f(*args, **kwargs)
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 386, in create_instance
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server     locality)
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 366, in _create_instance
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server     scheduler_hints)
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 393, in create_instance
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server     self._log_and_raise(e, msg, err)
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 861, in _log_and_raise
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server     raise TroveError(message=full_message)
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server TroveError: Error creating security group for instance: 0a13ef4e-ea1a-4c27-b316-80ef448f4923
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server From port must be an integer.
2016-11-13 13:36:46.379 7164 ERROR oslo_messaging.rpc.server
edit retag flag offensive close merge delete

Comments

Perhaps a typo in the trove config file? There are a few config settings that deal with security groups, see http://docs.openstack.org/newton/conf.... If you need a quick workaround, setting trove_security_groups_support to false might help.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-13 17:31:18 -0500 )edit

but trove_security_groups_support to false ,trove create is Error

yaoshenshen+1 gravatar imageyaoshenshen+1 ( 2016-12-09 19:29:01 -0500 )edit

4 answers

Sort by ยป oldest newest most voted
0

answered 2016-11-14 07:08:48 -0500

amrith gravatar image

Things which would be important to report include what version of Trove, what OS you are installing on, and your config files. In this case, I'd love to see what you had in trove-taskmanager.conf for the definition of your mysql datastore. As Bernd Bausch said, it looks like it is misconfigured.

Please enter a bug in launchpad for this issue. It would be good to augment the error message to point to a specific problem (in this case, what's the port number).

edit flag offensive delete link more
0

answered 2016-11-14 07:42:36 -0500

Erik gravatar image

updated 2016-12-09 22:51:27 -0500

centos7 trove version 1:6.0.0-1.el7 after reinstall i dont get Trove Error creating security group for instance now i see its stuck on build

[DEFAULT]
log_dir = /var/log/trove
notifier_queue_hostname = controller01
rpc_backend = rabbit
\# Show debugging output in logs (sets DEBUG log level output)
debug = True

\# Update the service and instance statuses if the instances fails to become
\# active within the configured usage_timeout.
usage_timeout = 3600
\# restore_usage_timeout = 36000
update_status_on_fail = True

\#================= RPC Configuration ================================

\# URL representing the messaging driver to use and its full configuration.
\# If not set, we fall back to the 'rpc_backend' option and driver specific
\# configuration.
\#transport_url=<None>

\# The messaging driver to use. Options include rabbit, qpid and zmq.
\# Default is rabbit. (string value)
\#rpc_backend=rabbit

\# The default exchange under which topics are scoped. May be
\# overridden by an exchange name specified in the 'transport_url option.
control_exchange = trove

\#DB Api Implementation
db_api_implementation = trove.db.sqlalchemy.api

\# Configuration options for talking to nova via the novaclient.
trove_auth_url = http://controller01:5000/v3.0
nova_compute_url = http://controller01:8774/v2
cinder_url = http://controller01:8776/v1
swift_url = http://controller01:8080/v1/AUTH_
neutron_url = http://controller01:9696/

\# nova_compute_url, cinder_url, swift_url, and heat_url can all be fetched
\# from Keystone. To fetch from Keystone, comment out nova_compute_url,
\# cinder_url, swift_url, and heat_url and optionally uncomment the lines below.

\# Region name of this node. Used when searching catalog. Default value is None.
\#os_region_name = RegionOne
\# Service type to use when searching catalog.
\#nova_compute_service_type = compute
\# Service type to use when searching catalog.
\#cinder_service_type = volumev2
\# Service type to use when searching catalog.
\#swift_service_type = object-store
\# Service type to use when searching catalog.
\#heat_service_type = orchestration
\# Service type to use when searching catalog.
\#neutron_service_type = network

\# Config options for enabling volume service
trove_volume_support = True
block_device_mapping = vdb
device_path = /dev/vdb
mount_point = /var/lib/mysql
volume_time_out=30
server_delete_time_out=480

\# Nova server boot options
\# sets the --config-drive argument when doing a nova boot
\# (controls how file injection is handled by nova)
use_nova_server_config_drive = True

\# Configuration options for talking to nova via the novaclient.
\# These options are for an admin user in your keystone config.
\# It proxy's the token received from the user to send to nova via this admin users creds,
\# basically acting like the client via that proxy token.
nova_proxy_admin_user = admin
nova_proxy_admin_pass = openstack
nova_proxy_admin_tenant_id = 1c7b790d9fd148ef97008ba3c153c1ed
\#nova_proxy_admin_tenant_name = service

\# Manager impl for the taskmanager
taskmanager_manager=trove.taskmanager.manager.Manager

\# Manager sends Exists Notifications
exists_notification_transformer = trove.extensions.mgmt.instances.models.NovaNotificationTransformer
exists_notification_ticks = 30
notification_service_id = mysql:2f3ff068-2bfb-4f70-9a9d-a6bb65bc084b

\# Trove DNS
trove_dns_support = False
dns_account_id = 123456
dns_auth_url = http://127.0.0.1:5000/v2.0
dns_username = user
dns_passkey = password
dns_ttl = 3600
dns_domain_name = 'trove.com.'
dns_domain_id = 11111111-1111-1111-1111-111111111111
dns_driver = trove.dns.designate.driver.DesignateDriver
dns_instance_entry_factory = trove.dns.designate.driver.DesignateInstanceEntryFactory
dns_endpoint_url = http://127.0.0.1/v1/
dns_service_type = dns

\# Neutron
network_driver = trove.network.neutron.NeutronDriver
default_neutron_networks =

\# Trove Security Groups for Instances
trove_security_groups_support = True
trove_security_group_rule_cidr = 0.0.0.0/0

\# Guest related conf
agent_heartbeat_time = 10
agent_call_low_timeout = 5
agent_call_high_timeout = 150
agent_replication_snapshot_timeout = 36000

\# Whether to use nova's contrib api for create server with volume
use_nova_server_volume = False

\# Config option for filtering the IP address that DNS uses
\# For nova-network ...
(more)
edit flag offensive delete link more

Comments

i have another q in https://ask.openstack.org/en/question... on the same issue

Erik gravatar imageErik ( 2016-11-14 07:55:03 -0500 )edit
0

answered 2016-12-09 04:45:17 -0500

yaoshenshen+1 gravatar image

updated 2016-12-09 19:30:10 -0500

I  have the seem problem  

 +-------------------+-------------------------------------------------------------------------------------------------------+
| Property          | Value                                                                                                 |
+-------------------+-------------------------------------------------------------------------------------------------------+
| created           | 2016-12-09T10:16:06                                                                                   |
| datastore         | mysql                                                                                                 |
| datastore_version | mysql-5.6                                                                                             |
| fault             | Error creating security group for instance:                                                           |
|                   |     7af68e2e-6fc8-4d34-afb3-f53d2b3d8c13                                                              |
|                   | From port must be an integer.                                                                         |
| fault_date        | 2016-12-09T10:16:06                                                                                   |
| fault_details     | Server type: taskmanager                                                                              |
|                   | Traceback (most recent call last):                                                                    |
|                   |   File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 386, in create_instance  |
|                   |     locality)                                                                                         |
|                   |   File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 366, in _create_instance |
|                   |     scheduler_hints)                                                                                  |
|                   |   File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 393, in create_instance   |
|                   |     self._log_and_raise(e, msg, err)                                                                  |
|                   |   File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 861, in _log_and_raise    |
|                   |     raise TroveError(message=full_message)                                                            |
|                   | TroveError:                                                                                           |
|                   |     Error creating security group for instance:                                                       |
|                   |     7af68e2e-6fc8-4d34-afb3-f53d2b3d8c13                                                              |
|                   | From port must be an integer.                                                                         |
|                   |                                                                                                       |
| flavor            | 6                                                                                                     |
| id                | 7af68e2e-6fc8-4d34-afb3-f53d2b3d8c13                                                                  |
| name              | mysql                                                                                                 |
| status            | ERROR                                                                                                 |
| updated           | 2016-12-09T10:16:06                                                                                   |
| volume            | 5                                                                                                     |
+-------------------+-------------------------------------------------------------------------------------------------------+
edit flag offensive delete link more
0

answered 2017-03-10 08:06:05 -0500

tnowak gravatar image

Try that:

https://ask.openstack.org/en/question/100196/trove-error-creating-security-group-for-instancenewton/?answer=103988#post-id-103988 (https://ask.openstack.org/en/question...)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-11-13 05:39:42 -0500

Seen: 623 times

Last updated: Dec 09 '16