Ask Your Question

vickchak's profile - activity

2018-06-15 09:12:41 -0500 received badge  Famous Question (source)
2017-10-11 12:19:57 -0500 received badge  Famous Question (source)
2015-12-29 18:48:57 -0500 received badge  Famous Question (source)
2015-10-14 13:39:13 -0500 received badge  Scholar (source)
2015-10-14 01:52:09 -0500 answered a question Building Dashboard using horizon error

Issue was because the horizon of Devstack cloned from GIT was missing something.

https://github.com/openstack-dev/devs...

When I followed the instructions from http://docs.openstack.org/developer/h... and cloned from horizon GIT directly,

git clone https://github.com/openstack/horizon.git

and then following the instructions on http://docs.openstack.org/developer/h... works fine.

Posting since it might be of use to someone.

2015-10-13 17:29:14 -0500 received badge  Editor (source)
2015-10-13 17:12:03 -0500 received badge  Notable Question (source)
2015-10-13 14:38:47 -0500 received badge  Popular Question (source)
2015-10-13 13:57:17 -0500 commented question Building Dashboard using horizon error

The error encountered is in the first step itself.didn't reach that far. The exact command where it fails in run_tests.sh is with this

/opt/stack/horizon/tools/with_venv.sh python /opt/stack/horizon/manage.py -f startdash mydashboard --target openstack_dashboard/dashboards/mydashboard

new to Pytho

2015-10-12 18:52:35 -0500 asked a question Building Dashboard using horizon error

Hi,

I set up a Devstack environment in Cent OS 7 from GIT git clone https://github.com/openstack-dev/devs... -b stable/juno

Done successfully and I'm able to login to horizon and launch instances using horizon.

I'm trying to extend the dashboard and add a new one through the following link

http://docs.openstack.org/developer/h...

When I run the command

./run_tests.sh -m startdash mydashboard --target openstack_dashboard/dashboards/mydashboard

I'm getting this error

Traceback (most recent call last):
  File "/opt/stack/horizon/manage.py", line 23, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()<br>
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)<br>
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 261, in fetch_command
    commands = get_commands()<br>
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 107, in get_commands
    apps = settings.INSTALLED_APPS<br>
  File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 54, in __getattr__
    self._setup(name)<br>
  File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 49, in _setup
    self._wrapped = Settings(settings_module)<br>
  File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 132, in __init__
    % (self.SETTINGS_MODULE, e)

ImportError: Could not import settings 'openstack_dashboard.test.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named utils

The exact command where it fails in run_tests.sh is with this

/opt/stack/horizon/tools/with_venv.sh python /opt/stack/horizon/manage.py -f startdash mydashboard --target openstack_dashboard/dashboards/mydashboard

Tried fiddling with ALLOWEDHOSTS entry and PYTHONPATH etc but nothing works. Stuck on it for 2 days, any help would be very helpful.

Thanks,

2015-01-08 06:30:04 -0500 received badge  Famous Question (source)
2014-11-21 01:34:46 -0500 marked best answer Logging in Ask OpenStack using email address

I think there is some problem with ask.openstack.org , even when I try to login with my registered mail addresses and proper password, it is displaying "Please signup". When I try to login thro gmail or launchpad, it is displaying that email address is already registered.

The only way I can post question is to register with a new mail address

2014-11-05 21:00:48 -0500 received badge  Notable Question (source)
2014-09-29 10:47:40 -0500 received badge  Popular Question (source)
2014-09-20 13:54:23 -0500 received badge  Famous Question (source)
2014-09-20 00:11:44 -0500 received badge  Notable Question (source)
2014-09-09 08:08:21 -0500 commented question API - Unable to perform Resume action on Paused instance

We are using REST services for the API call using JSON objects. No SDK used.

The URL we used is "http://10.236.220.222:8774/v2/77.../servers/<server-id>/action"

Method is post, input json used is {"resume":null}

rest is as usual http connection request

2014-09-09 02:29:32 -0500 received badge  Popular Question (source)
2014-09-08 04:53:11 -0500 asked a question API - Unable to perform Resume action on Paused instance

Hi,

When we try to perform a Resume action on a paused instance through Horizon, it succeeds. But when we try to perform the same action through Openstack API, it fails with the following message "Cannot 'resume' while instance is in vm_state paused".

Rest of the actions performed through API are synchronous with that in horizon, can some one throw some light on why this happens, we are stuck with this issue for more than a week without any clue.

Thanks.

2014-09-01 07:18:05 -0500 asked a question create snapshot from instance displays succeeds but doesnt create

Hi,

I'm trying to create an image/snapshot from one of my openstack instances through horizon. It displays the success message and goes to the image/snapshot page, but the image is not created. This is the behavior if the image of the instance is cirros-0.3.1-x86_64-uec-ramdisk.

But if I try to create a snapshot out of an instance with image as CentOSImage, then it works fine.

On checking the logs I see the below whenever I click on the create snapshot button for the former scenario.

If any one have any clue why this issue occurs, it would be great.

[Mon Sep 01 11:56:51 2014] [error] [Mon Sep 01 11:56:51 2014] [error] REQ: curl -i 'http://10.236.220.222:8774/v2/2a3cad55e18a4229b555fbdcfce9fd0d/servers/efaafbea-d2aa-4d84-8515-fadd4c213efb/action' -X POST -H "X-Auth-Project-Id: 2a3cad55e18a4229b555fbdcfce9fd0d" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: e100d568517695ac35e0d205d3dad953" -d '{"createImage": {"name": "myimagevick", "metadata": {}}}' [Mon Sep 01 11:56:51 2014] [error] [Mon Sep 01 11:56:51 2014] [error] New session created for: ( http://10.236.220.222:8774 ) [Mon Sep 01 11:56:52 2014] [error] RESP: [202] CaseInsensitiveDict({'date': 'Mon, 01 Sep 2014 11:56:52 GMT', 'content-length': '0', 'content-type': 'text/html; charset=UTF-8', 'location': 'http://10.236.220.222:8774/v2/2a3cad55e18a4229b555fbdcfce9fd0d/images/45afe55e-5668-4e48-84bc-2181d73af7a8', 'x-compute-request-id': 'req-a7ef2cfe-a947-490d-8cba-771b6f6e609f'}) [Mon Sep 01 11:56:52 2014] [error] RESP BODY: [Mon Sep 01 11:56:52 2014] [error] [Mon Sep 01 11:56:52 2014] [error] [Mon Sep 01 11:56:52 2014] [error] REQ: curl -i 'http://10.236.220.222:8774/v2/2a3cad55e18a4229b555fbdcfce9fd0d/servers/efaafbea-d2aa-4d84-8515-fadd4c213efb' -X GET -H "X-Auth-Project-Id: 2a3cad55e18a4229b555fbdcfce9fd0d" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: e100d568517695ac35e0d205d3dad953" [Mon Sep 01 11:56:52 2014] [error] [Mon Sep 01 11:56:52 2014] [error] New session created for: ( http://10.236.220.222:8774 ) [Mon Sep 01 11:56:52 2014] [error] RESP: [200] CaseInsensitiveDict({'date': 'Mon, 01 Sep 2014 11:56:52 GMT', 'content-length': '1705', 'content-type': 'application/json', 'x-compute-request-id': 'req-622b265d-a955-41fa-b97e-9bd6651aa09c'}) [Mon Sep 01 11:56:52 2014] [error] RESP BODY: {"server": {"status": "SHUTOFF", "updated": "2014-09-01T11:56:52Z", "hostId": "261cdbb1fa6c1a42a49953d7574b65a9ab2591e390a6a4b9d50dda54", "OS-EXT-SRV-ATTR:host": "222-Openstack", "addresses": {"private": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:4a:f2:bd", "version": 4, "addr": "10.13.14.12", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://10.236.220.222:8774/v2/2a3cad55e18a4229b555fbdcfce9fd0d/servers/efaafbea-d2aa-4d84-8515-fadd4c213efb", "rel": "self"}, {"href": "http://10.236.220.222:8774/2a3cad55e18a4229b555fbdcfce9fd0d/servers/efaafbea-d2aa-4d84-8515-fadd4c213efb", "rel": "bookmark"}], "key_name": null, "image": {"id": "3103af46-8a3c-493b-828f-a4ba09d64f97", "links": [{"href": "http://10.236.220.222:8774/2a3cad55e18a4229b555fbdcfce9fd0d/images/3103af46-8a3c-493b-828f-a4ba09d64f97", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": "image_snapshot", "OS-EXT-STS:vm_state": "stopped", "OS-EXT-SRV-ATTR:instance_name": "instance-00000146", "OS-SRV-USG:launched_at": "2014-08-27T13:12:22.000000", "OS-EXT-SRV-ATTR:hypervisor_hostname": "222-Openstack", "flavor": {"id": "84", "links": [{"href": "http://10.236.220.222:8774/2a3cad55e18a4229b555fbdcfce9fd0d/flavors/84", "rel": "bookmark"}]}, "id": "efaafbea-d2aa-4d84-8515-fadd4c213efb", "security_groups": [{"name": "default"}], "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "nova", "user_id": "8cd399f2127e41f293793c12d9b7323c", "name": "Deve-Apache-2613", "created": "2014-08-27T13:12:16Z", "tenant_id": "2a3cad55e18a4229b555fbdcfce9fd0d", "OS-DCF:diskConfig": "MANUAL", "os-extended-volumes:volumes_attached": [], "accessIPv4": "", "accessIPv6": "", "OS-EXT-STS:power_state": 4, "config_drive": "", "metadata": {}}} [Mon Sep 01 11:56:52 2014] [error] [Mon ... (more)

2014-08-05 23:15:12 -0500 received badge  Notable Question (source)
2014-08-04 11:04:39 -0500 received badge  Popular Question (source)
2014-08-04 02:32:10 -0500 commented answer Is API available to create and attach volume when creating server

Hi Chaoyi,

Thanks for your response.

But I don't intend to boot from the volume. I just want to create and attach a volume to a newly created instance. So, the steps would be

1) Create openstack instance 2) Create a volume(empty or from snapshot or from image) 3) Attach the volume to the newly created instance.

Is there a single cloud call to do this? This is available in AWS,we can create an ebsvolume and attach it to the instance while creating. But I doubt if it is there in openstack, so wanted to confirm.

2014-08-04 02:31:20 -0500 answered a question Is API available to create and attach volume when creating server

Hi Chaoyi,

Thanks for your response.

But I don't intend to boot from the volume. I just want to create and attach a volume to a newly created instance. So, the steps would be

1) Create openstack instance 2) Create a volume(empty or from snapshot or from image) 3) Attach the volume to the newly created instance.

Is there a single cloud call to do this? This is available in AWS,we can create an ebsvolume and attach it to the instance while creating. But I doubt if it is there in openstack, so wanted to confirm.

2014-08-03 20:42:50 -0500 received badge  Notable Question (source)
2014-08-03 16:42:11 -0500 received badge  Nice Question (source)
2014-08-03 16:41:56 -0500 received badge  Popular Question (source)
2014-08-01 12:06:48 -0500 received badge  Student (source)