Ask Your Question

chamaraT's profile - activity

2017-02-10 05:37:07 -0500 received badge  Famous Question (source)
2016-11-13 09:19:38 -0500 received badge  Notable Question (source)
2016-11-08 04:34:25 -0500 commented question How to take instance live backup with out freezing

Block commit time out with below error [#virsh blockcommit instance-000000a5 vda --active --verbose --pivot]

error: block copy still active: disk 'vda' not ready for pivot yet
2016-11-07 08:12:21 -0500 received badge  Popular Question (source)
2016-11-06 10:33:08 -0500 asked a question How to take instance live backup with out freezing

We are looking for a daily instance backup mechanism for our cloud instances with out any disturbances to the availability. At the moment when taking snapshots it freezes the file system for some duration which seems to be based on the root file system size.

OS- CentOS 7 (Juno)

Reinstalled the QEMU using qemu-kvm-rhev repo (yum install qemu-kvm-ev.x86_64)

virsh version ->

Compiled against library: libvirt 1.2.8

Using library: libvirt 1.2.8

Using API: QEMU 1.2.8

Running hypervisor: QEMU 2.3.0

Tried to use the external snapshotting facility which is given by the Libvirt but it hangs on pivot phase. (REF - https://kashyapc.fedorapeople.org/vir...)

Below are the steps taken to get snapshot using libvirt external snapshotting and results are as below

Before taking snapshot
     # virsh domblklist instance-000000a5 --details
    Type       Device     Target     Source
    ------------------------------------------------
    file       disk       vda        /var/lib/nova/instances/180f7bea-339f-46f7-8521-0fd3ad00af25/disk


Taking snapshot
# virsh snapshot-create-as instance-000000a5 instance-000000a5-snap8 "snap1 description" --diskspec vda,file=/tmp/snap8-testvm.qcow2   --disk-only --atomic --no-metadata
Domain snapshot instance-000000a5-snap8 created

# virsh domblklist instance-000000a5 --details
Type       Device     Target     Source
------------------------------------------------
file       disk       vda        /tmp/snap8-testvm.qcow2


After taking backup of "/var/lib/nova/instances/180f7bea-339f-46f7-8521-0fd3ad00af25/disk"   executed the below command to merge  snapshot  with base.

#virsh blockcommit instance-000000a5 vda --active --verbose --pivot
Block Commit: [100 %]

This  output hangs as above  


On  nova log in compute node -> 2016-11-06 21:47:08.622 16994 INFO nova.compute.manager [-] [instance: 180f7bea-339f-46f7-8521-0fd3ad00af25] VM Paused (Lifecycle Event)
2016-11-06 21:47:09.051 16994 WARNING nova.compute.manager [-] [instance: 180f7bea-339f-46f7-8521-0fd3ad00af25] Instance is paused unexpectedly. Ignore.


So Is it not possible to use LibVirt external snapshotting for Openstack ? Or what is the available method for taking live instance backups with out any disturbances to the availability. (At the moment we are not using LVM for storage so LVM backup  will not be a option for us).
2016-08-16 01:46:43 -0500 received badge  Famous Question (source)
2016-08-16 01:46:43 -0500 received badge  Notable Question (source)
2016-08-16 01:46:43 -0500 received badge  Popular Question (source)
2016-07-25 01:36:42 -0500 asked a question Instance Network Failed Suddenly

Version - Juno

Revently In our Openstack Setup Mostly on CentOS and Windows Instances (On Ubuntu this not happening yet ) suddenly network connectivity failed and could resolve only by detaching and reattaching new neutron port to the instance.

Some time even reattach its not working and have to create a new instance using snapshot.

Any Idea why this is happening ? Where we could find more (debug) info?

2016-06-03 01:04:28 -0500 received badge  Famous Question (source)
2016-03-04 02:26:03 -0500 received badge  Notable Question (source)
2016-03-04 02:26:03 -0500 received badge  Popular Question (source)
2016-01-12 05:13:07 -0500 asked a question Openstack volume attaching suddenly stopped

Controller Details (Cinder is configured in the controller node):- OS- Red Hat Enterprise Linux Server release 7.0 (Maipo) Openstack Version - Juno

Worked well and suddenly Volume attaching stopped, when trying via UI it times out after some times. Checked the following commands in the controller. Volume is mounted in the controller via multipath and volume creation works without any issue, guess something to do with iscsi....?

#iscsiadm -m discovery -t sendtargets -p 127.0.0.1
iscsiadm: Connection to Discovery Address 127.0.0.1 failed
iscsiadm: Login I/O error, failed to receive a PDU
iscsiadm: retrying discovery login to 127.0.0.1
iscsiadm: Connection to Discovery Address 127.0.0.1 failed
iscsiadm: Login I/O error, failed to receive a PDU
iscsiadm: retrying discovery login to 127.0.0.1
iscsiadm: Connection to Discovery Address 127.0.0.1 failed
iscsiadm: Login I/O error, failed to receive a PDU
iscsiadm: retrying discovery login to 127.0.0.1
iscsiadm: Login response timeout. Waited 30 seconds and did not get reponse PDU.

iscsiadm: discovery login to 127.0.0.1 failed, giving up 2
iscsiadm: Could not perform SendTargets discovery: encountered non-retryable iSCSI login failure

#service iscsi status -l
Redirecting to /bin/systemctl status  -l iscsi.service
iscsi.service - Login and scanning of iSCSI devices
   Loaded: loaded (/usr/lib/systemd/system/iscsi.service; enabled)
   Active: failed (Result: exit-code) since Tue 2016-01-12 14:03:08 IST; 2h 29min ago
     Docs: man:iscsid(8)
           man:iscsiadm(8)
  Process: 328 ExecStart=/sbin/iscsiadm -m node --loginall=automatic (code=exited, status=8)
  Process: 321 ExecStart=/usr/libexec/iscsi-mark-root-nodes (code=exited, status=0/SUCCESS)
 Main PID: 328 (code=exited, status=8)

Jan 12 14:01:05 lkcontroller iscsi-mark-root-nodes[321]: iscsiadm: No active sessions.
Jan 12 14:03:08 lkcontroller iscsiadm[328]: iscsiadm: Could not login to [iface: default, target: iqn.2010-10.org.openstack:volume-02fee599-3928-43f3-a0a2-c11436f529d8, portal: 127.0.0.1,3260].
Jan 12 14:03:08 lkcontroller iscsiadm[328]: iscsiadm: initiator reported error (8 - connection timed out)
Jan 12 14:03:08 lkcontroller iscsiadm[328]: iscsiadm: Could not log into all portals
Jan 12 14:03:08 lkcontroller iscsiadm[328]: Logging in to [iface: default, target: iqn.2010-10.org.openstack:volume-02fee599-3928-43f3-a0a2-c11436f529d8, portal: 127.0.0.1,3260] (multiple)
Jan 12 14:03:08 lkcontroller systemd[1]: iscsi.service: main process exited, code=exited, status=8/n/a
Jan 12 14:03:08 lkcontroller systemd[1]: Failed to start Login and scanning of iSCSI devices.
Jan 12 14:03:08 lkcontroller systemd[1]: Unit iscsi.service entered failed state.
Jan 12 14:09:41 lkcontroller systemd[1]: Unit iscsi.service cannot be reloaded because it is inactive.
Jan 12 14:09:42 lkcontroller systemd[1]: Unit iscsi.service cannot be reloaded because it is inactive.


#service iscsid status -l
Redirecting to /bin/systemctl status  -l iscsid.service
iscsid.service - Open-iSCSI
   Loaded: loaded (/usr/lib/systemd/system/iscsid.service; enabled)
   Active: active (running) since Tue 2016-01-12 16:29:24 IST; 4min 23s ago ...
(more)
2015-12-10 23:24:03 -0500 received badge  Scholar (source)
2015-12-10 23:22:10 -0500 answered a question How to get VCPU percentage of an instance

I used Ceilometer data and implemented and it was sucessfull

2015-10-07 14:31:02 -0500 received badge  Famous Question (source)
2015-10-01 06:30:48 -0500 commented answer How to get VCPU percentage of an instance

We have already over used the resources using over committing , now we want to 1. shut down instances which is not used based on may be CPU usage ....(Which is looking a good method), 2. terminate (May be 7 days after shutdown) unused instances.

2015-09-23 11:57:12 -0500 received badge  Notable Question (source)
2015-09-23 06:55:15 -0500 commented answer How to get VCPU percentage of an instance

Plan is to monitor (If possible) the CPU usage continuously lower than given percentage for a given time (may be 24 hours) and to take the actions due to the resource limitation which we have to deal with.

2015-09-23 04:22:09 -0500 received badge  Popular Question (source)
2015-09-23 01:03:36 -0500 asked a question How to get VCPU percentage of an instance

Hi all,

Is there any way to get the CPU usage percentage (User space) for a given instance with out login to the system, for the purpose of shutting down/terminating unused/idle instances. Maybe via virsh or some libvirt API ?

Thanks, ChamaraT

2015-06-22 10:56:39 -0500 received badge  Famous Question (source)
2015-05-30 07:30:17 -0500 received badge  Famous Question (source)
2015-05-30 07:01:31 -0500 commented question Access among Openstack tenants

Thank You for your feed back,

Yes I Already did the both network shared, so that I can see each network from one another's network topology diagram as well , But still I can not access among the tenants. (Even before make them shared I could PING the instances among the different tenants)

2015-05-29 12:47:16 -0500 received badge  Notable Question (source)
2015-05-29 10:54:38 -0500 received badge  Popular Question (source)
2015-05-28 23:55:49 -0500 asked a question Access among Openstack tenants

HI,

How to configure Openstack to enable instances among the tenants to communicate, For the moment instances among tenant can PING each other. I heard by putting router will allow this, so I followed the below steps.

1. Make shared **True** in both tenant networks.
2. Create a router in one tenant and add 2 interfaces by connecting 2 tenant networks.

But above approach did not work. Help is appreciated.

Thank You, Chamara

2015-05-19 09:12:43 -0500 received badge  Nice Question (source)
2015-05-18 16:07:11 -0500 received badge  Famous Question (source)
2015-05-13 01:56:13 -0500 answered a question Instance can not access Openstack metadata service

HI,

I have used the virt-manager and created the QCOW image and installed the required packages (cloud-init). After that I added following entry which prevent adding 169.254.0.0 route which causes the issue of prevent accessing metadata service earlier. Uploaded to the glace and work fine except could not find tools to grow the disk according to the selected flavor. (As I found from RHEL 6.x there are tools available , but not for RHEl 5.x)

echo "NOZEROCONF=yes" >> /etc/sysconfig/network
2015-05-11 04:59:04 -0500 received badge  Notable Question (source)
2015-05-10 10:00:49 -0500 commented answer Instance can not access Openstack metadata service

I also used oz-install tool and created the RHEL5.8, and its also gives the same error as above.

2015-05-10 10:57:13,362 - DataSourceEc2.py[WARNING]: 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [3/120s]: url error [[Errno 113] No route to hos
2015-05-09 08:40:00 -0500 commented answer Instance can not access Openstack metadata service

As I could spawn Ubuntu instances and it was working well , also metedata service was accessible. I was thinking whats wrong with the way i create RHEL images ?

2015-05-09 08:37:05 -0500 commented answer Instance can not access Openstack metadata service

Thank You for the reply. As mentioned above I could not access metadata service from qrouter namespace but could access the metadata service from the qdhcp namespace.

# ip netns exec  qdhcp-a98f1337-e350-4491-aed4-30a39a7ded75 curl http://169.254.169.254
1.0
2007-01-19
2007-03-01
2015-05-09 08:31:05 -0500 received badge  Popular Question (source)
2015-05-09 08:10:18 -0500 received badge  Enthusiast
2015-05-08 07:18:21 -0500 asked a question Instance can not access Openstack metadata service

I have created an Openstack compatible image (QCOW2) from RHEL 5.8 basically using following guide [1]. I am using Openstack juno on CentOS 7.

Creation was successful and when i uploaded it to the Glance and spawn instance out of it , it hangs on metedata accessing part, after few seconds it get started. I cloud login to the instance using the IP assigned by the openstack with the root user which I used at the time of image creation.
So as I could login Network part is working , when i try to curl http://169.254.169.254 it also not reachable.

I have tried uploading Ubuntu image and spawn instance with out any issues and could access metedata service with out any issues.

What am i doing wrong in image creation process? Help is appreciated.

[1].http://www.ravellosystems.com/blog/kvm-for-cloud-linux-image/

Thanks, Chamara

2015-04-27 05:12:08 -0500 received badge  Notable Question (source)
2015-04-17 07:26:31 -0500 received badge  Notable Question (source)
2015-04-17 07:26:31 -0500 received badge  Famous Question (source)
2015-04-08 00:08:53 -0500 received badge  Famous Question (source)
2015-04-06 23:46:39 -0500 received badge  Notable Question (source)
2015-04-06 23:20:58 -0500 commented answer scp hang on the instances in openstack

Thanks for the reply.

But I guess it has nothing to do with SSHD running port , because at the time it get hang we could log in to the instances via SSH with out any issue, Only issue was scp to the instances.

2015-04-06 10:09:21 -0500 received badge  Popular Question (source)
2015-04-06 10:08:10 -0500 received badge  Student (source)
2015-04-06 01:47:41 -0500 asked a question scp hang on the instances in openstack

HI,

We encountered the issue last week in our Openstack cloud with following symptoms.

  1. Can create instances and can SSH with out issue.
  2. Can WGET from the instances to internet.
  3. When trying to SCP to instances it is getting hang and not getting copied.

Could not find details from the log files, finally rebooted the Controller server which resolved the issue. Can any one give some instructions/ideas to resolve this situation if encountered again?

 - Details
    Controller is on RHEL 7
    Openstack Juno is installed using RDO
    We are having 4 compute  nodes with 1 TB RAM and SAN mounted using multipath.
    Currently we are having nearly 178 active instances.

Thank You, Chamara

2015-02-19 05:14:53 -0500 commented question LDAP Group authentication for Keystone

Hi,

At least can anybody tell have you tried this ?