Ask Your Question

salvorapi's profile - activity

2019-05-14 11:14:03 -0600 received badge  Nice Answer (source)
2017-06-04 05:47:05 -0600 answered a question openstack high availability

Hi,

for implement High Availability in OpenStack installation there are a lots of consideration that you have to do before deploy it.

What I can suggest to you is to approciate to Mirantis Fuel deploy model (http://www.mirantis.com) that enable you to deploy a super HA and extensible installation of OpenStack.

Salvo.

2016-06-20 05:28:29 -0600 marked best answer [Horizon] unable to view vnc console in <iframe> with SSL

Hi,

I have configured horizon dashboard with SSL enabled. Horizon works perfectly, but in "Console" tab there is no content visible. With chrome devel console i see that content is blocked because vnc prefix url in iframe tag is HTTP and not HTTPS.

How can I configure to make it visible without click "Click here to show only console" ?

Thanks.

Salvo.

2015-10-13 04:25:00 -0600 commented answer resize VM error

sorry for this

2015-10-13 03:34:13 -0600 received badge  Nice Answer (source)
2015-10-13 03:16:47 -0600 answered a question resize VM error

hi,

if you have two or more compute nodes you have to configure SSH key to permit the resize or block migration of a VM to a different compute node.

You can follow this guide that for me is very helpful

http://funcptr.net/2014/09/29/opensta...

Salvo.

P.S.

If you think that answer is correct for you please click on green button.

2015-10-13 02:58:34 -0600 edited 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-10-12 09:31:31 -0600 answered a question How can I report problems with wiki.openstack.org?

https://bugs.launchpad.net/openstack-...

You can found the link on bottom of this page.

2015-10-09 18:59:05 -0600 received badge  Self-Learner (source)
2015-10-09 04:59:33 -0600 answered a question How to unset/remove image proprety?

I resolved using "nova image-meta" command.

   usage: nova image-meta <image> <action> <key=value> [<key=value> ...]

   Set or Delete metadata on an image.

   Positional arguments:
     <image>      Name or ID of image
     <action>     Actions: 'set' or 'delete'
     <key=value>  Metadata to add/update or delete (only key is necessary on
                  delete)
2015-10-09 04:57:35 -0600 commented answer How to unset/remove image proprety?

I know, but I don't like the phrase "delete all image properties not explicitly set in the update request". :)

2015-10-09 04:55:48 -0600 received badge  Notable Question (source)
2015-10-09 04:55:48 -0600 received badge  Famous Question (source)
2015-10-09 04:55:48 -0600 received badge  Popular Question (source)
2015-10-08 11:17:47 -0600 received badge  Good Question (source)
2015-10-08 00:24:09 -0600 received badge  Necromancer (source)
2015-10-08 00:24:09 -0600 received badge  Self-Learner (source)
2015-10-07 05:41:36 -0600 asked a question How to unset/remove image proprety?

Hi,

with the command

glance image-update --property my_prop=1 <image_id>

I can store the value of my custom property to my image. But, how can I unset/remove definitively this property ? I try with:

glance image-update --property my_prop= <image_id>

but set the value of property to None.

Thanks,

Salvo

2015-10-06 03:06:01 -0600 edited question How to check openstack version using REST API ?

It is similar to the question asked here but i am looking if there is any way to get the version information using the REST end points?

2015-10-02 11:35:12 -0600 answered a question Disable Button "Send CtrlAltDel"

Hi,

a possible solution is to modify the code of VNC Console (that is available on https://github.com/kanaka/noVNC) and disable/remove the button with id="sendCtrlAltDelButton" on vnc_auto.html file.

In your openstack installation you can found vnc_auto.html under /usr/share/novnc/vnc_auto.html

Salvo.

2015-09-28 07:41:52 -0600 edited question How to add an IP to a instance online?

After I launched a instance with network A, I want to add an IP of another network B to this instance. I have tried using these two commands to do above operation:

neutron port-create ------ to create a new port
nova interface-attach ------- to attach the new port to my instance

But after executing the two commands,I can not ping the new IP from other instances in network B. So,how can I do? And it must be completed online without stopping the instance.

2015-09-24 09:59:38 -0600 commented question Alarm for instance creation in ceilometer using heat templates

I think this is not a real question. Can you adjust your question, please ?

2015-09-23 07:51:44 -0600 edited question Error communicating with http://controller:8777 [Errno 111] Connection refused

I've installed the ceilometer in fedora 20. As per the the document mentioned in the openstack site. But while running the following command, am getting connection refused.

[root@controller ~]# ceilometer meter-list
Error communicating with http://controller:8777 [Errno 111] Connection refused

Trobleshooting:

  1. Disabled selinux and iptables..
  2. uncommented the port 8777 in the celometer.conf file..
  3. verified with netstat command the 8777 port was not listening.

Please advise.

Thanks, -Syed.

2015-09-22 02:16:52 -0600 edited question vcpu usage of an instance ?

The "Vcpu" meter in the ceilometer meter-list tells you about the number of Vcpu's assigned to that instance. How can we find the number of Vcpu's the instance is using at the moment.

For example: If I create an instance and assign it 5 Vcpu's how can I check the number of Vcpus the instance is using at the moment.

Kindly provide some information on this.

2015-09-22 02:15:29 -0600 commented question juno- lbaas with citrix netscaler VPX

Ok. What about your neutron-lbaas.conf and neutron.conf ? Can you post your config ?

2015-09-21 04:32:36 -0600 commented question juno- lbaas with citrix netscaler VPX

What kind of configuration do you use ? Can you post your configuration ?

2015-09-17 05:45:51 -0600 commented answer Live VM migration (block-migration) fails

Have you enable libvirtd_opts="-d -l" in /etc/default/libvirt-bin ?

2015-09-17 05:41:39 -0600 commented answer Is it possible to list volumes per tenant by an admin user?

Which one is the correct answer for you? :)

2015-09-16 09:59:19 -0600 edited question How to display a date sorted list of images with date field

I've written this batch file to list images by date, it runs slow and relies on the gnu unix utilities. I was wondering if there was a faster way to do this


@echo off
rem  batch file # ==========================================================
rem  Name...........: getimagebyage.bat
rem  Description ...: List images by age
rem  Parameters ....: 
rem     %1 -  filter
rem  Returns .......: 
rem  Author  .......:  Thomas Bodine
rem  Modified.......:
rem  Remarks .......:
rem ======================================================================
if not exist output md output
nova image-list > output/images.txt
set target=output/images.txt
if [%1] == [] goto :nofilter
  grep -i %1  output/images.txt > output/imageFiltered.txt
  set target=output/imageFiltered.txt
:nofilter
cut -c42-98 %target% > output/imageNames.txt
C:\Windows\System32\find.exe /v "-----" output/imageNames.txt > output/justNames.txt 2> NUL:
del /q output\imageage.txt
for /f "tokens=*" %%A in (output\justNames.txt) do call :getage %%A  
sort output/imageage.txt > output/sortedImageAge.txt
start "" C:\Windows\System32\notepad.exe output/sortedImageAge.txt
goto :EOF
:getage
  rem echo on
  if [%1]==[] goto :EOF
  if [%1]==[----------] goto :EOF
  if [%1]==[Name] goto :EOF
  set imageName=%*
  glance image-show "%imageName%" > output\imageinfo.txt
  perl -n -e "print $1,'  ',""%imageName%\r\n"" if (/updated.*(\s\d\d\S+)/)" output\imageinfo.txt
  perl -n -e "print $1,'  ',""%imageName%\r\n"" if (/updated.*(\s\d\d\S+)/)" output\imageinfo.txt >> output\imageage.txt
  @echo off
goto :EOF
:EOF



Thanks for your time and attention.
2015-09-16 08:33:51 -0600 answered a question Is it possible to list volumes per tenant by an admin user?

Or you can view volumes of single tenant with:

# cinder --os-tenant-name <tenant_name> list
2015-09-16 08:30:41 -0600 answered a question Custom ip for virtual router

Yes. You can assign a IP via horizon when you add an network as a router interface or via command line creating first a port with a your IP and next adding to the router interface :

# neutron port-create --fixed-ip subnet_id=<your_subnet_id>,ip_address=192.168.1.20 <your_network_id>

the previous command return the ID of reserved port and next you can add port to router:

# neutron router-interface-add <your_router_id> port=<your_port_id>
2015-09-16 03:19:21 -0600 answered a question Live VM migration (block-migration) fails

Hi,

the error message is clear "Live migration of instances with config drives is not supported in libvirt unless libvirt instance path and drive data is shared across compute nodes."

What kind of shared storage do you use ? NFS or Ceph ? If you don't use a shared storage you cannot use live migration.

Otherwise, if you have a shared storage you can check if you have setting force_config_drive different from None in nova.conf.

What version of openstack do you use ?

Salvo.

2015-09-16 03:15:43 -0600 edited question Live VM migration (block-migration) fails

Hi,

I need some help about VM live migration (block migration). I am running 1 controller and 2 compute nodes in a devstack environment with stable/kilo branch. I have configured nova.conf with live_migration_flag by following openstack documentation (http://docs.openstack.org/admin-guide... configure libvirtd to listen on tcp but I do not see vm migrate to new compute node when I use command

nova live-migrate --block-migrate UUID NEW_NODE

nova.conf (libvirt section)

[libvirt]
vif_driver = nova.virt.libvirt.vif.LibvirtGenericVIFDriver
inject_partition = -2
live_migration_uri = qemu+ssh://stack@%s/system
live_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE
use_usb_tablet = False
cpu_mode = none
virt_type = qemu

libvirtd.conf

listen_tls=0
listen_tcp=1
tcp_auth="none"

libvirtd is listening on 16509

$ sudo netstat -anp | grep 165
tcp        0      0 0.0.0.0:16509           0.0.0.0:*               LISTEN      18946/libvirtd
tcp6       0      0 :::16509                :::*                    LISTEN      18946/libvirtd

Errors under nova log.

    2015-09-14 18:46:18.378 ERROR nova.compute.manager [req-d35efe82-3fd6-4c84-953c-256248a34f5b admin admin] [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc713
    9e5] Pre live migration failed at nova1
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5] Traceback (most recent call last):
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/opt/stack/nova/nova/compute/manager.py",
    line 5316, in live_migration
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     block_migration, disk, dest, migrate_data)
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/opt/stack/nova/nova/compute/rpcapi.py", l
    ine 623, in pre_live_migration
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     disk=disk, migrate_data=migrate_data)
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 156, in call
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     retry=self.retry)
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 90, in _send
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     timeout=timeout, retry=retry)
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 350, in send
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     retry=retry)
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 341, in _send
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     raise result
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5] NoLiveMigrationForConfigDriveInLibVirt_Remote: Live migration of instances with config drives is not supported in libvirt unless libvirt instance path and drive data is shared across compute nodes.

Any help?

Thanks, Hardik

2015-09-14 09:25:54 -0600 edited question RBD and live migration

Hi there,

I've successfully installed openstack with rbd volumes backend but experiencing issues with live migration. I'm getting "Failed to compute_task_migrate_server: node01is not on shared storage: Live migration can not be used without shared storageFailed to compute_task_migrate_server: node01is not on shared storage: Live migration can not be used without shared storage" error. I guess it should be addressed soon by https://review.openstack.org/#/c/91722/.

But even though I've failed with block migration. Getting "NoBlockMigrationForConfigDriveInLibVirt: Block migration of instances with config drives is not supported in libvirt." I'm trying to migrate default m1.tiny flavor instance

$ nova flavor-list 

+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| 1  | m1.tiny   | 512       | 1    | 0         |      | 1     | 1.0         | True      |

if makes sense.

Any thoughts of how to set up live migration with rbd storage backend properly would be appreciated.

Thank you,

Pavel

2015-09-14 09:13:18 -0600 edited question Libvirt error when installing Kilo release

Hi,

I installed Kilo release on three node x86 based cluster. I'm not able to launch an instance and while debugging it I see the following error in /var/log/libvirt/libvirtd.log on the compute node.

 27184: error : netcfStateCleanup:111 : internal error: Attempt to close netcf state driver with open connections
 27396: info : libvirt version: 1.2.8, package: 1.2.8-0ubuntu11.8
 27396: error : virSecurityDriverLookup:80 : unsupported configuration: Security driver apparmor not enabled

I googled for above errors, but didn't find any concrete answer. Does anyone know the cause of above error message ?

Thank you.

2015-09-14 09:09:30 -0600 commented question Ping issue with virtual router

What version of OpenStack do you have ?

2015-09-10 10:45:43 -0600 received badge  Nice Answer (source)
2015-09-10 09:34:34 -0600 edited question Instance pauses while taking snapshot

Openstack Kilo release Ceph storage backend

I have run into an issue lately where I create a snapshot of a running instance, while the snapshot state is "image pending upload" And "Queued" state in the image service, I cant access my Instance

I cant access it via the console, ssh and I ran a continuous ping to the floating IP and it times out, but the instance still shows running on the dashboard

As soon as the instance state is "Image uploading" and in the image service "saving" The instance becomes available again,

Is this a know issue ? All of this is done via Horizon dashboard

I can see the following in the logs on the compute:

2015-09-09 14:33:39.265 23261 INFO nova.compute.manager [req-0252f823-73f5-4c37-aa86-efbe6536e4f6 d2b1cc9566d44a909de46689569118e3 3b5e03b8a83e44dd9a7140d868d28a9e - - -] [instance: a0e855e5-c205-4d61-bd48-99384d6310f5] instance snapshotting
2015-09-09 14:33:39.877 23261 INFO nova.compute.manager [req-1a3446d4-c183-4729-86b3-d63e15fe38d7 - - - - -] [instance: a0e855e5-c205-4d61-bd48-99384d6310f5] VM Paused (Lifecycle Event)
2015-09-09 14:33:40.049 23261 INFO nova.compute.manager [req-1a3446d4-c183-4729-86b3-d63e15fe38d7 - - - - -] [instance: a0e855e5-c205-4d61-bd48-99384d6310f5] During sync_power_state the instance has a pending task (image_snapshot). Skip.
2015-09-09 14:33:50.756 23261 INFO nova.virt.libvirt.driver [req-0252f823-73f5-4c37-aa86-efbe6536e4f6 d2b1cc9566d44a909de46689569118e3 3b5e03b8a83e44dd9a7140d868d28a9e - - -] [instance: a0e855e5-c205-4d61-bd48-99384d6310f5] Beginning cold snapshot process
2015-09-09 14:33:50.759 23261 INFO nova.compute.manager [req-1a3446d4-c183-4729-86b3-d63e15fe38d7 - - - - -] [instance: a0e855e5-c205-4d61-bd48-99384d6310f5] VM Stopped (Lifecycle Event)
2015-09-09 14:33:50.939 23261 INFO nova.compute.manager [req-1a3446d4-c183-4729-86b3-d63e15fe38d7 - - - - -] [instance: a0e855e5-c205-4d61-bd48-99384d6310f5] During sync_power_state the instance has a pending task (image_snapshot). Skip.
2015-09-09 14:35:57.831 23261 INFO nova.compute.manager [req-1a3446d4-c183-4729-86b3-d63e15fe38d7 - - - - -] [instance: a0e855e5-c205-4d61-bd48-99384d6310f5] VM Started (Lifecycle Event)
2015-09-09 14:35:57.990 23261 INFO nova.compute.manager [req-1a3446d4-c183-4729-86b3-d63e15fe38d7 - - - - -] [instance: a0e855e5-c205-4d61-bd48-99384d6310f5] During sync_power_state the instance has a pending task (image_pending_upload). Skip.
2015-09-09 14:35:57.991 23261 INFO nova.compute.manager [req-1a3446d4-c183-4729-86b3-d63e15fe38d7 - - - - -] [instance: a0e855e5-c205-4d61-bd48-99384d6310f5] VM Resumed (Lifecycle Event)
2015-09-09 14:35:58.151 23261 INFO nova.compute.manager [req-1a3446d4-c183-4729-86b3-d63e15fe38d7 - - - - -] [instance: a0e855e5-c205-4d61-bd48-99384d6310f5] During sync_power_state the instance has a pending task (image_pending_upload). Skip.
2015-09-09 14:35:58.498 23261 INFO nova.virt.libvirt.driver [req-0252f823-73f5-4c37-aa86-efbe6536e4f6 d2b1cc9566d44a909de46689569118e3 3b5e03b8a83e44dd9a7140d868d28a9e - - -] [instance: a0e855e5-c205-4d61-bd48-99384d6310f5] Snapshot extracted, beginning image upload

Any help with this would be appreciated :)

Thanks

2015-09-10 09:32:59 -0600 marked best answer How to clean up old ceilometer data ?

Hi,

i have installed ceilometer on my controller node and today I check that mongodb database size is 11 GB. I want to cleanup old data, how can I do ? There is a procedure/method ?

Thanks.

Salvo.