Ask Your Question

spradeepv's profile - activity

2018-12-20 01:20:33 -0500 received badge  Student (source)
2016-11-07 10:30:17 -0500 received badge  Famous Question (source)
2016-11-07 10:30:17 -0500 received badge  Notable Question (source)
2016-10-28 01:42:43 -0500 received badge  Famous Question (source)
2015-12-29 18:24:37 -0500 received badge  Famous Question (source)
2015-09-16 02:03:57 -0500 received badge  Famous Question (source)
2015-09-15 01:45:45 -0500 received badge  Popular Question (source)
2015-08-28 08:00:30 -0500 received badge  Notable Question (source)
2015-08-28 08:00:30 -0500 received badge  Popular Question (source)
2015-08-25 06:45:21 -0500 commented answer How to write a plugin in Ceilometer to monitor physical switch/router outside of OpenStack

This is to monitor the nodes right? I want to monitor a new metric value which is specific to a physical router. Should I add the metric and then write a module specific to that metric?

2015-08-25 04:12:29 -0500 asked a question How to write a plugin in Ceilometer to monitor physical switch/router outside of OpenStack

I am trying to monitor certain metrics like say 'cpu_util' for a physical swithch/router connected to compute node using a ceilometer pollster. Will I be able to do this?

If Yes, since there should be a resource ID for each resource, what will be the resource ID for the switch/router?

2015-07-15 01:49:09 -0500 answered a question Unable to run tox tests due to error with pip version

I had to upgrade virtualenv. I did this by removing the .venv folder and then ran ./run_tests.sh. Now test cases run without any issue. Doing this will allow you to run test cases using ./run_tests.sh.

To enable tox -e py27 you have to upgrade virtualenv package as follows:

pip install --upgrade virtualenv
2015-07-15 00:27:27 -0500 asked a question Unable to run tox tests due to error with pip version

I am trying to run tox -e py27 in cinder and I get the following error:

You are using pip version 7.0.1, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Exception:
Traceback (most recent call last):
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/basecommand.py", line 223, in main
    status = self.run(options, args)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/commands/install.py", line 268, in run
    wheel_cache
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/basecommand.py", line 289, in populate_requirement_set
    requirement_set.add_requirement(req)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/req/req_set.py", line 219, in add_requirement
    if not install_req.match_markers():
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/req/req_install.py", line 796, in match_markers
    return markers_interpret(self.markers)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/markers.py", line 190, in interpret
    return Evaluator(execution_context).evaluate(marker.strip())
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/markers.py", line 100, in evaluate
    return handler(node)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/markers.py", line 163, in do_expression
    return self.evaluate(node.body)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/markers.py", line 100, in evaluate
    return handler(node)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/markers.py", line 121, in do_boolop
    result = self.evaluate(node.values[0])
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/markers.py", line 100, in evaluate
    return handler(node)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/markers.py", line 154, in do_compare
    rhs = self.evaluate(rhsnode)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/markers.py", line 99, in evaluate
    node_type, s))
SyntaxError: don't know how to evaluate 'num' '2.7 or pyt'...

May I know how to resolve this issue?

2015-06-11 02:46:31 -0500 received badge  Popular Question (source)
2015-06-11 02:46:31 -0500 received badge  Notable Question (source)
2015-06-04 00:40:49 -0500 asked a question Cinder tempest volume tests failed

I deployed a single node devstack(Liberty) on Ubuntu 14.04. When i run tempest volume tests, some tests failed. Following are the steps which I followed to run the tempest tests

  • git clone https://github.com/openstack-dev/devstack.git (https://github.com/openstack-dev/devs...) (https://github.com/openstack-dev/devs...)
  • cd devstack
  • Edit local.conf as shown below:
[[local|localrc]]
ADMIN_PASSWORD=password
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
HOST_IP=192.168.4.113
DEST=/opt/stack
enable_service mysql
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-l3
enable_service q-dhcp
enable_service q-meta
enable_service neutron
enable_service tempest

# These options define  expected driver capabilities
CINDER_ENABLED_BACKENDS=hp_3par:3parfc
TEMPEST_VOLUME_DRIVER=hp_3par_fc
TEMPEST_VOLUME_VENDOR="Hewlett-Packard"
TEMPEST_STORAGE_PROTOCOL=FC

VERBOSE=True
DEBUG=True
LOGFILE=/opt/stack/screen-logs/stack.sh.log
USE_SCREEN=True
LOGDAYS=1
SCREEN_LOGDIR=/opt/stack/screen-logs
RECLONE=True

[[post-config|/etc/cinder/cinder.conf]]
[DEFAULT]
zoning_mode=fabric
default_volume_type=3parfc
enabled_backends=3parfc

[fc-zone-manager]
fc_fabric_names=F1
fc_san_lookup_service=cinder.zonemanager.drivers.brocade.brcd_fc_san_lookup_service.BrcdFCSanLookupService
zone_driver=cinder.zonemanager.drivers.brocade.brcd_fc_zone_driver.BrcdFCZoneDriver
zoning_policy=initiator-target

[F1]
fc_fabric_address=10.24.49.116
fc_fabric_user=zoneAdmin
fc_fabric_password=password
fc_fabric_port=22

[3parfc]
hp3par_api_url=https://10.24.49.111:8080/api/v1
hp3par_username=3paradm
hp3par_password=passw0rd
hp3par_debug=False
san_ip=10.24.49.111
san_login=3paradm
san_password=passw0rd
volume_backend_name=3parfc
hp3par_cpg=FC_r5
volume_driver=cinder.volume.drivers.san.hp.hp_3par_fc.HP3PARFCDriver

Following error is thrown for most of the failed test cases:

ERROR: setUpClass (tempest.api.volume.admin.test_snapshots_actions.SnapshotsActionsV2Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tempest/test.py", line 272, in setUpClass
    six.reraise(etype, value, trace)
  File "tempest/test.py", line 265, in setUpClass
    cls.resource_setup()
  File "tempest/api/volume/admin/test_snapshots_actions.py", line 40, in resource_setup
    'available')
  File "tempest/services/volume/json/volumes_client.py", line 173, in wait_for_volume_status
    raise exceptions.VolumeBuildErrorException(volume_id=volume_id)
tempest.exceptions.VolumeBuildErrorException: Volume 5ce55c63-286d-4542-9f82-ecbfa4913629 failed to build and is in ERROR status

Am I missing something?

2015-05-04 16:19:58 -0500 received badge  Notable Question (source)
2015-03-31 14:06:55 -0500 received badge  Popular Question (source)
2015-03-25 09:00:40 -0500 received badge  Famous Question (source)
2015-03-24 02:08:08 -0500 asked a question How does Gnocchi map resources and its corresponding metrics?

I am trying to understand how gnocchi works and solves the problem with ceilometer. I am not sure how gnocchi indexer maps the resources and its corresponding metric values.

I also tried to install gnocchi using devstack. Installation was successful and I could see gnocchi-api in the screen. When I check the database I couldn't see any metric being collected. How do I get gnocchi to collect metrics for a VM?

Here is the gnocchi.conf file that is used.

[DEFAULT]
verbose = True

[storage]
file_basepath = /opt/stack/data/gnocchi/
driver = file
coordination_url = file:///opt/stack/data/gnocchi/locks

[keystone_authtoken]
signing_dir = /var/cache/gnocchi
cafile = /opt/stack/data/ca-bundle.pem
auth_uri = http://172.26.28.226:5000
project_domain_id = default
project_name = admin
user_domain_id = default
password = password
username = gnocchi
auth_url = http://172.26.28.226:35357
auth_plugin = password

[indexer]
url = mysql://root:password@127.0.0.1/gnocchi?charset=utf8
driver = sqlalchemy

Regards, Pradeep. S

2015-02-20 04:25:33 -0500 received badge  Famous Question (source)
2015-02-03 06:58:16 -0500 received badge  Taxonomist
2015-01-15 13:07:58 -0500 received badge  Famous Question (source)
2014-11-07 08:55:09 -0500 received badge  Famous Question (source)
2014-11-07 05:46:04 -0500 received badge  Notable Question (source)
2014-11-04 08:14:21 -0500 received badge  Notable Question (source)
2014-11-04 04:11:16 -0500 received badge  Popular Question (source)
2014-10-26 12:02:48 -0500 received badge  Popular Question (source)
2014-10-21 14:43:42 -0500 received badge  Notable Question (source)
2014-10-14 12:53:57 -0500 asked a question Devstack multi node setup on ESXi VMs

Hi,

I have installed devstack (icehouse/stable) on ESXi host VMs (VMs installed with Ubuntu 12.04). Following are the details.

1. DevStack controller node on one of the VMs in ESXi host. (VM1)
2. DevStack compute node on one of the VMs in ESXi host. (VM2)

I have configured to use VLAN network. The issue is, VM instance on the compute node doesn't get IP address from the DHCP agent. Is it due to the reason that the whole setup is in VMs.

Anybody faced an issue similar to this?

2014-09-30 02:45:49 -0500 marked best answer How to solve error 'Non-empty resource type is required for resource' with heat template

I am trying to get familiar with the use of cloud-config in heat template. I decided to install wordpress using heat template. Following is the user data which is passed to Nova server instance :

Resources:
  server_init:
    type: OS::Heat::CloudConfig
    properties:
      cloud_config:
        packages:
         - apache2
         - php5
         - php5-mysql
         - mysql-server
        runcmd:
         - wget http://wordpress.org/latest.tar.gz -P /tmp/
         - tar zxf /tmp/latest.tar.gz -C /var/www/
         - cp /var/www/wordpress/wp-config-sample.php /var/www/wordpress/wp-config.php 
         - sed -e 's/database_name_here/wordpress/' -e 's/username_here/wpuser/' -e 's/password_here/password/' /var/www/wordpress/wp-config.php
         - grep -q -F 'extension=mysqli.so' /etc/php5/apache2/php.ini || echo 'extension=mysqli.so' >> /etc/php5/apache2/php.ini
         - mysql -uroot -ppassword -e "create database wordpress; create user 'wpuser'@'localhost' identified by 'password'; grant all privileges on wordpress . \* ro 'wpuser'@localhost'; flush privileges"
         - mysql -uroot -ppassword -e "drop database test; drop user 'test'@'localhost'; flush privileges"
         - mysqladmin -u root password 'password'

  server:
    type: OS::Nova::Server
    properties:
      image: {get_param: image}
      flavor: {get_param: flavor}
      key_name: {get_param: key_name}
      user_data_format: RAW
      user_data: 
        get_resource: server_init

I get the following error while creating a stack:

"Non-empty resource type is required for resource server_init"

What is the problem with the template?

2014-09-24 00:25:05 -0500 received badge  Popular Question (source)
2014-09-23 07:44:34 -0500 commented answer How to solve error 'Non-empty resource type is required for resource' with heat template

Thank You, Steve. I will check out the spec and will let you know how it goes.

2014-09-23 07:42:44 -0500 received badge  Popular Question (source)
2014-09-23 07:42:44 -0500 received badge  Notable Question (source)
2014-09-23 06:41:52 -0500 asked a question Unable to create a instance in the compute node

I am unable to create a instance in the compute node. I use the following property of Nova:Server in heat template to create instance in a particular compute zone.

availablity_zone: nova:hostName

I get the following error message :

too many values to unpack Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply incoming.message))
  File "/usr/local/lib/python2.7/dist-packages/oslo/me 

  File "/opt/stack/nova/nova/compute/manager.py", line 290, in decorated_function return function(self, context, *args, **kwargs)
  File "/opt/stack/nova/nova/compute/manager.py", line 2102, in run_instance do_run_instance()
  File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 249, in inner return f(*args, **kwargs)
  File "/opt/stack/nova/nova/compute/manager.py", line 2101, in do_run_instance legacy_bdm_in_spec)
  File "/opt/stack/nova/nova/compute/manager.py", line 1225, in _run_instance notify("error", fault=e) # notify that build failed
  File "/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__ six.reraise(self.type_, self.value, self.tb)
  File "/opt/stack/nova/nova/compute/manager.py", line 1209, in _run_instance instance, image_meta, legacy_bdm_in_spec)
  File "/opt/stack/nova/nova/compute/manager.py", line 1329, in _build_instance set_access_ip=set_access_ip)
  File "/opt/stack/nova/nova/compute/manager.py", line 393, in decorated_function return function(self, context, *args, **kwargs)
  File "/opt/stack/nova/nova/compute/manager.py", line 1741, in _spawn LOG.exception(_('Instance failed to spawn'), instance=instance)
  File "/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__ six.reraise(self.type_, self.value, self.tb)
  File "/opt/stack/nova/nova/compute/manager.py", line 1738, in _spawn block_device_info)
  File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2279, in spawn admin_pass=admin_password)
  File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2710, in _create_image content=files, extra_md=extra_md, network_info=network_info)
  File "/opt/stack/nova/nova/api/metadata/base.py", line 167, in __init__ ec2utils.get_ip_info_for_instance_from_nw_info(network_info)
  File "/opt/stack/nova/nova/api/ec2/ec2utils.py", line 147, in get_ip_info_for_instance_from_nw_info fixed_ips = nw_info.fixed_ips()
  File "/opt/stack/nova/nova/network/model.py", line 407, in _sync_wrapper self.wait()
  File "/opt/stack/nova/nova/network/model.py", line 439, in wait self[:] = self._gt.wait()
  File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait return self._exit_event.wait()
  File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 124, in wait current.throw(*self._exc)
  File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 207, in main result = function(*args, **kwargs)
  File "/opt/stack/nova/nova/compute/manager.py", line 1528, in _allocate_network_async dhcp_options=dhcp_options)
  File "/opt/stack/nova/nova/network/api.py", line 95, in wrapped return func(self, context, *args, **kwargs)
  File "/opt/stack/nova/nova/network/api.py", line 49, in wrapper res = f(self, context, *args, **kwargs)
  File "/opt/stack/nova/nova/network/api.py", line 323, in allocate_for_instance nw_info = self.network_rpcapi.allocate_for_instance(context, **args)
  File "/opt ...
(more)
2014-09-23 06:40:18 -0500 asked a question Unable to create a instance in the compute node

I am unable to create a instance in the compute node. I use the following property of Nova:Server in heat template to create instance in a particular compute zone.

availablity_zone: nova:hostName

I get the following error message :

too many values to unpack Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply incoming.message)) File "/usr/local/lib/python2.7/dist-packages/oslo/me 
File "/opt/stack/nova/nova/compute/manager.py", line 290, in decorated_function return function(self, context, *args, **kwargs) File "/opt/stack/nova/nova/compute/manager.py", line 2102, in run_instance do_run_instance() File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 249, in inner return f(*args, **kwargs) File "/opt/stack/nova/nova/compute/manager.py", line 2101, in do_run_instance legacy_bdm_in_spec) File "/opt/stack/nova/nova/compute/manager.py", line 1225, in _run_instance notify("error", fault=e) # notify that build failed File "/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__ six.reraise(self.type_, self.value, self.tb) File "/opt/stack/nova/nova/compute/manager.py", line 1209, in _run_instance instance, image_meta, legacy_bdm_in_spec) File "/opt/stack/nova/nova/compute/manager.py", line 1329, in _build_instance set_access_ip=set_access_ip) File "/opt/stack/nova/nova/compute/manager.py", line 393, in decorated_function return function(self, context, *args, **kwargs) File "/opt/stack/nova/nova/compute/manager.py", line 1741, in _spawn LOG.exception(_('Instance failed to spawn'), instance=instance) File "/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__ six.reraise(self.type_, self.value, self.tb) File "/opt/stack/nova/nova/compute/manager.py", line 1738, in _spawn block_device_info) File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2279, in spawn admin_pass=admin_password) File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2710, in _create_image content=files, extra_md=extra_md, network_info=network_info) File "/opt/stack/nova/nova/api/metadata/base.py", line 167, in __init__ ec2utils.get_ip_info_for_instance_from_nw_info(network_info) File "/opt/stack/nova/nova/api/ec2/ec2utils.py", line 147, in get_ip_info_for_instance_from_nw_info fixed_ips = nw_info.fixed_ips() File "/opt/stack/nova/nova/network/model.py", line 407, in _sync_wrapper self.wait() File "/opt/stack/nova/nova/network/model.py", line 439, in wait self[:] = self._gt.wait() File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait return self._exit_event.wait() File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 124, in wait current.throw(*self._exc) File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 207, in main result = function(*args, **kwargs) File "/opt/stack/nova/nova/compute/manager.py", line 1528, in _allocate_network_async dhcp_options=dhcp_options) File "/opt/stack/nova/nova/network/api.py", line 95, in wrapped return func(self, context, *args, **kwargs) File "/opt/stack/nova/nova/network/api.py", line 49, in wrapper res = f(self, context, *args, **kwargs) File "/opt/stack/nova/nova/network/api.py", line 323, in allocate_for_instance nw_info = self.network_rpcapi.allocate_for_instance(context, **args) File "/opt ...
(more)
2014-09-18 22:24:26 -0500 received badge  Popular Question (source)
2014-09-11 02:16:32 -0500 marked best answer get_attr to retrieve IP address allocated to an instance

I have been trying to deploy an application in 2 different subnets using heat template. I successfully deployed web server instance and database server instance. In the heat template I use the following function to get the IP address of the database server instance - to configure the DB server in web server instance.

    userdata:
      str_replace:
        template: |
          ...
          ...
        params:
          db_ipaddr: {get_attr: [database_server, networks, private, 0]} 
    depends_on: database_server

The IP address of the database server is not set in the web server's configuration file. It is empty.

How do I solve this issue?

2014-09-11 02:16:32 -0500 received badge  Supporter (source)
2014-09-11 02:16:28 -0500 received badge  Scholar (source)
2014-09-10 00:56:32 -0500 received badge  Enthusiast
2014-09-09 05:54:44 -0500 received badge  Editor (source)