[Users] Bug related to Rhevm/Ovirt auto update or refresh !!
by Romil Gupta
Hello,
I upload ISO image using this script *upload.py*:
==================================================================================
import os
os.system('mkdir mount_dir')
os.system('mount -t nfs 15.15.158.2:/iso/rhevmisonfs mount_dir')
print 'mounted'
print 'start copying'
os.system('cp -f CentOS-6.2-x86_64-LiveDVD.iso
mount_dir/e3e3b0cd-48a4-4bb8-a75b-07813f2c165e/images/11111111-1111-1111-1111-111111111111/')
print 'file copied'
os.system('umount -a nfs 15.15.158.2:/iso/rhevmisonfs mount_dir')
print 'unmounted'
os.system('rmdir mount_dir')
print 'dir removed'
==================================================================================
and I created a *rhevm_test.py *
api.vms.add(params.VM(name=VM_NAME,
memory=2*GB,os=params.OperatingSystem(boot=[params.Boot(dev='cdrom'),
params.Boot(dev='hd')]),cluster=api.clusters.get(name='Default'),
template=api.templates.get('Blank')))
print 'VM created'
domain=api.storagedomains.list()
for d in domain:
print ' domain name : %s ' %d.name
api.storagedomains.get(name='rhevmiso').update()
rhevmiso=api.storagedomains.get(name='rhevmiso').files.list()
for iso in rhevmiso:
print ' iso --> %s \n' % iso.name
image = api.storagedomains.get(name='rhevmiso').files.get(name='
CentOS-6.2-x86_64-LiveDVD.iso ')
print 'image found %s' %image
api.vms.get(VM_NAME).cdroms.add(params.CdRom(name='cdrom',file=image))
print 'image added to VM'
==================================================================================
now i got the following exception :
image found none
*Note* : the reason is image is copied to "rhevmiso" storage domain but it
not reflected in RHEVM user interface unless and untill I refresh it !
whenever listing files in api should force iso-refresh but its not working
:(
*Do we have any refresh or update function in ovirt sdk so that after
coping the image RHEVM ISO domain will get refresh automatically ?? *
With Regards,
Romil
12 years, 1 month
[Users] Spice VM doesn't startup: Could not use ca file
by Dennis Böck
--_000_2452E8A35A372E4F8654136ACEABDBCE24F8866FDB3PRD0311MB403_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Dear oVirt-Community,
when I try to start a spice VM (out of the User portal), after a few second=
s it stops and the error message:
"VM spcie-test-1 is down. Exit message: internal error Process exited while=
reading console log output: char device redirected to /dev/pts/0
do_spice_init: starting 0.10.1
reds_init_ssl: Could not use ca file"
appears.
Any ideas what could help?
Best regards
Dennis
--_000_2452E8A35A372E4F8654136ACEABDBCE24F8866FDB3PRD0311MB403_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html dir=3D"ltr">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style id=3D"owaParaStyle">P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body fPStyle=3D"1" ocsi=3D"0">
<div style=3D"direction: ltr;font-family: Tahoma;color: #000000;font-size: =
10pt;">
<div>
<p>Dear oVirt-Community,</p>
<p> </p>
<p>when I try to start a spice VM (out of the User portal), after a few sec=
onds it stops and the error message:</p>
<p>"VM spcie-test-1 is down. Exit message: internal error Process exit=
ed while reading console log output: char device redirected to /dev/pts/0</=
p>
<p>do_spice_init: starting 0.10.1</p>
<p>reds_init_ssl: Could not use ca file"</p>
<p>appears.</p>
<p> </p>
<p>Any ideas what could help?</p>
<p> </p>
<p>Best regards</p>
<p>Dennis</p>
</div>
</div>
</body>
</html>
--_000_2452E8A35A372E4F8654136ACEABDBCE24F8866FDB3PRD0311MB403_--
12 years, 1 month
Re: [Users] Related to python script for Attach Cd (.iso) to a vm
by Michael Pasternak
On 11/05/2012 09:58 AM, Romil Gupta wrote:
> Do we have any refresh or update function in ovirt sdk so that after coping the image RHEVM will get refresh automatically ??
>
> Regards,
> Romil
yes, just do GET on /api/storagedomains/xxx/files
--
Michael Pasternak
RedHat, ENG-Virtualization R&D
12 years, 1 month
[Users] Related to automatic update or refresh the RHEVM ISO domain !
by Romil Gupta
hello,
I upload ISO image using this script *upload.py*:
==================================================================================
import os
os.system('mkdir mount_dir')
os.system('mount -t nfs 15.15.158.2:/iso/rhevmisonfs mount_dir')
print 'mounted'
print 'start copying'
os.system('cp -f CentOS-6.2-x86_64-LiveDVD.iso
mount_dir/e3e3b0cd-48a4-4bb8-a75b-07813f2c165e/images/11111111-1111-1111-1111-111111111111/')
print 'file copied'
os.system('umount -a nfs 15.15.158.2:/iso/rhevmisonfs mount_dir')
print 'unmounted'
os.system('rmdir mount_dir')
print 'dir removed'
==================================================================================
and I created a *rhevm_test.py *
api.vms.add(params.VM(name=VM_NAME,
memory=2*GB,os=params.OperatingSystem(boot=[params.Boot(dev='cdrom'),
params.Boot(dev='hd')]),cluster=api.clusters.get(name='Default'),
template=api.templates.get('Blank')))
print 'VM created'
rhevmiso=api.storagedomains.get(name='rhevmiso').files.list()
for iso in rhevmiso:
print ' iso --> %s \n' % iso
image = api.storagedomains.get(name='rhevmiso').files.get(name='
CentOS-6.2-x86_64-LiveDVD.iso ')
print 'image found %s' %image
api.vms.get(VM_NAME).cdroms.add(params.CdRom(name='cdrom',file=image))
print 'image added to VM'
==================================================================================
now i got the following exception :
image found none
*Note* : the reason is image is copied to "rhevmiso" storage domain but it
not reflected in RHEVM user interface unless and untill I refresh it !
*Do we have any refresh or update function in ovirt sdk so that after
coping the image RHEVM ISO domain will get refresh automatically ?? *
With Regards,
Romil
12 years, 1 month
[Users] issue with adding node
by Patrick Roughan
Hey,
I am having an issue with adding a node to the master when i try to add
from the node, with ip address and password i get this error, can anyone
shed some light on how to fix this? i am using the latest install of 3.1. i
have reinstalled both node and master with same issue happening
[Errno 2] No such file or directory: │
│ '/etc/pki/vdsm/certs/cacert.pem' │
│ Traceback (most recent call last): │
│ File "/usr/libexec/ovirt-config-setup", │
│ line 2018, in start │
│ self.process_config() │
│ File "/usr/libexec/ovirt-config-setup", │
│ line 1807, in process_config │
│ ret = p.action() │
│ File │
│ "/usr/lib/python2.7/site-packages/ovirt_con │
│ fig_setup/engine.py", line 183, in action │
│ File "/usr/share/vdsm-reg/deployUtil.py", │
│ line 1408, in nodeCleanup │
│ File "/usr/share/vdsm-reg/deployUtil.py", │
│ line 1399, in _nodeBackupCerts │
│ File "/usr/lib64/python2.7/shutil.py", │
│ line 128, in copy2 │
│ File "/usr/lib64/python2.7/shutil.py", │
│ line 82, in copyfile │
│ IOError: [Errno 2] No such file or │
│ directory: '/etc/pki/vdsm/certs/cacert.pem'
--
Regards
Patrick
--
Disclaimer: The information contained in this email, including any
attachments, is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorised review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. The views or opinions expressed are the author's
own and may not reflect the views or opinions of Epoch Capital Pty Limited
or associated companies.
12 years, 1 month
[Users] Related to python script for Attach Cd (.iso) to a vm
by Romil Gupta
Hello ,
*I want to write a script to attach a '.iso' image to a vm *
so ,can you please help me or tell me some api so that i can continue my
work !!!
I have some '.iso ' file in my storage .
script *rhevm_test.py*
from ovirtsdk.api import API
from ovirtsdk.xml import params
import time
rhevm_uri = "https://rhevm301.xxx.xx.com:8443/api"
rhevm_username = "admin(a)rhevm301.xxx.xx.com"
rhevm_password = "iso*help"
api = API(url=rhevm_uri, username=rhevm_username, password=rhevm_password)
print "Connected to RHEVM Successful"
MB = 1024*1024
GB = 1024*MB
VM_NAME = 'test_vm'
DESCRIP = 'testing vm'
CLUSTER_NAME = 'Default'
STORAGE_NAME = 'rhevmVMdata'
domain_name= 'rhevmiso'
domain_type = 'ISO'
try:
api.vms.add(params.VM(name=VM_NAME,description=DESCRIP,
memory=2*GB,cluster=api.clusters.get(CLUSTER_NAME),
template=api.templates.get('Blank') , cdroms =
'CentOS-6.2-x86_64-LiveCD.iso '))
print 'VM created'
api.vms.get(VM_NAME).nics.add(params.NIC(name='nic1',
network=params.Network(name='rhevm'), interface='Red Hat VirtIO'))
print 'NIC added to VM'
api.vms.get(VM_NAME).disks.add(params.Disk(storage_domains=params.StorageDomains(storage_domain=[api.storagedomains.get(STORAGE_NAME)]),size=512*MB,status=None,interface='VirtIO',format='Preallocated',sparse=True,bootable=True))
print 'Disk added to VM'
print 'Waiting for VM to reach Down status'
while api.vms.get(VM_NAME).status.state != 'down':
time.sleep(1)
except Exception as e:
print 'Failed to create VM with disk and NIC\n%s' % str(e)
time.sleep(10)
try:
if api.vms.get(VM_NAME).status.state != 'up':
print 'Starting VM'
api.vms.get(VM_NAME).start()
print 'Waiting for VM to reach Up status'
while api.vms.get(VM_NAME).status.state != 'up':
time.sleep(1)
else:
print 'VM already up'
except Exception as e:
print 'Failed to Start VM:\n%s' % str(e)
and got some exceptions
Connected to RHEVM Successful
Failed to create VM with disk and NIC
'str' object has no attribute 'export'
Failed to Start VM:
'NoneType' object has no attribute 'status'
if i remove this cdroms = 'CentOS-6.2-x86_64-LiveCD.iso ' the code will
works fine and it will create a vm with blank template w/o any '.iso'
attached !!
*
*
*
*
*
*
*
*
*With Regards,*
*Romil*
12 years, 1 month
[Users] tool engine-manage-domains
by victor nunes
I'm trying to change the default domain, the "internal" with the following
command:
engine-manage-domains -action=edit -domain=internal
However, i am getting the following message:
"Domain internal doesn't exist int the configuration"
This is my domain admin user that is configured in the installation
ovirt-setup.
So, how can i fix it to include a user in this domain?
Att,
--
“Encarada do ponto de vista da juventude, a vida parece um futuro
indefinidamente longo, ao passo que, na velhice, ela parece um passado
deveras curto. Assim, a vida no seu início se apresenta do mesmo modo
que as coisas quando as olhamos através de um binóculo usado ao contrário;
mas, ao
seu final, ela se parece com as coisas tal qual são vistas quando o
binóculo
é usado de modo normal. Um homem precisa ter envelhecido e vivido
bastante para perceber como a vida é curta”.
(Poema de Arthur Schopenhauer)
12 years, 1 month
[Users] Why VDSM daemon resets SATA link too often
by Adam Tkáč
Hello all,
I'm experiencing strange issue on one of the nodes. There is only one
VM on the node but it generates _a lot_ of disk I/O.
Sometimes vdsm writes following error to the system log:
Nov 1 14:45:17 virtualizer respawn: slave '/usr/share/vdsm/vdsm'
died, respawning slave
Nov 1 14:45:20 virtualizer vdsm vds ERROR Unable to load the rest
server module. Please make sure it is installed.
Nov 1 14:45:20 virtualizer kernel: [105149.428697] ata1: hard resetting link
Nov 1 14:45:21 virtualizer kernel: [105149.758448] ata1: SATA link
down (SStatus 0 SControl 300)
Nov 1 14:45:21 virtualizer kernel: [105149.784996] ata1: EH complete
Nov 1 14:45:21 virtualizer vdsm vm.Vm WARNING
vmId=`6c6fc6f7-1b61-484b-9e44-0e9bb57ac1c9`::Unknown type found,
device: '{'device': u'unix', 'alias': u'channel0', 'type': u'channel',
'address': {u'bus': u'0', u'controller': u'0', u'type':
u'virtio-serial', u'port': u'1'}}' found
Nov 1 14:45:21 virtualizer kernel: [105150.159060] ata2: EH complete
Nov 1 14:45:21 virtualizer kernel: [105150.181694] ata3: hard resetting link
Nov 1 14:45:21 virtualizer kernel: [105150.510474] ata3: SATA link
down (SStatus 0 SControl 300)
<repeated for every ata* link...>
Nov 1 14:45:25 virtualizer vdsm Storage.LVM WARNING lvm vgs failed: 5
[] [' Volume group "752f4ef6-2e3a-4cec-aad9-848a8b8b9e80" not found']
Nov 1 14:55:41 virtualizer vdsm vds ERROR connection to libvirt
broken. taking vdsm down.
Nov 1 14:55:41 virtualizer vdsm root ERROR client ('192.168.30.140', 34435)
Nov 1 14:55:42 virtualizer vdsm vm.Vm ERROR
vmId=`6c6fc6f7-1b61-484b-9e44-0e9bb57ac1c9`::Stats function failed:
<AdvancedStatsFunction _sampleNet at 0x24fc1e0>
Nov 1 14:55:42 virtualizer vdsm Storage.LVM WARNING lvm vgs failed: 5
[] [' Volume group "035e2517-c12b-4c7f-b80e-695fec96757e" not found']
Nov 1 14:55:42 virtualizer vdsm Storage.LVM WARNING lvm vgs failed: 5
[] [' Volume group "035e2517-c12b-4c7f-b80e-695fec96757e" not found']
The "752f4ef6-2e3a-4cec-aad9-848a8b8b9e80" is LOCALFS storage and VM
image is stored there.
After that VM becomes unresponsible and I have to kill qemu-kvm
process manually. The VM's image is stored on XFS system and after
SATA reset it takes some time before XFS responds. During this time
libvirtd daemon is not responsible and vdsm timeouts.
Is it possible to configure vdsm not to reset SATA link every time
when it starts? And if not, is it possible to increase timeout how
long vdsm waits for libvirtd response?
Thank you in advance.
Regards, Adam
12 years, 1 month
[Users] Installing ovirt-nightly problems
by Joop
Since I had some problems getting bonding working correctly in my
ovirt-3.1 test installation I decide to start all over with a clean
install and try the nightly, the webcast about bonding is using a nightly.
That didn't go to well :-(
What I did:
- install Fedora-17 from live CD
- yum upgrade --exclude=kernel*
(stayed on 3.3.4-5)
- yum localinstall http://ovirt.org/releases/ovirt-release-fedora.noarch.rpm
- enabled nightly in ovirt.repo
- yum install ovirt-engine
Ended up with the following nightly rpms:
ovirt-engine-3.1.0-3.20121031.gitdd0ad7f.fc17.noarch
ovirt-engine-backend-3.1.0-3.20121031.gitdd0ad7f.fc17.noarch
ovirt-engine-cli-3.2.0.5-1.20121025.git4189352.fc17.noarch
ovirt-engine-config-3.1.0-3.20121031.gitdd0ad7f.fc17.noarch
ovirt-engine-dbscripts-3.1.0-3.20121031.gitdd0ad7f.fc17.noarch
ovirt-engine-genericapi-3.1.0-3.20121031.gitdd0ad7f.fc17.noarch
ovirt-engine-notification-service-3.1.0-3.20121031.gitdd0ad7f.fc17.noarch
ovirt-engine-restapi-3.1.0-3.20121031.gitdd0ad7f.fc17.noarch
ovirt-engine-sdk-3.2.0.2-1.20121022.git8013c12.fc17.noarch
ovirt-engine-setup-3.1.0-3.20121031.gitdd0ad7f.fc17.noarch
ovirt-engine-tools-common-3.1.0-3.20121031.gitdd0ad7f.fc17.noarch
ovirt-engine-userportal-3.1.0-3.20121031.gitdd0ad7f.fc17.noarch
ovirt-engine-webadmin-portal-3.1.0-3.20121031.gitdd0ad7f.fc17.noarch
ovirt-image-uploader-3.1.0-1.fc17.noarch
ovirt-iso-uploader-3.1.0-1.fc17.noarch
ovirt-log-collector-3.1.0-1.fc17.noarch
ovirt-release-fedora-4-2.noarch
ran engine-setup and gave default answers where possible.
Instalation stopped with a Creating Database... ERROR
Attached are the logs and the real error is in the enginedb log:
user name is: engine
Creating uuid-ossp extension...
psql:/tmp/tmp.8hb5EYqc0Y:1: ERROR: permission denied to create extension
"uuid-ossp"
HINT: Must be superuser to create this extension.
It is right, user engine isn't a superuser and thus not allowed to create
the extension.
I modified the CREATE ROLE statement to include SUPERUSER role and
restarted engine-setup, now it continues and runs til the end.
Looking at the code I think that the second invocation of creating the
uuid-ossp extension isn't needed but commenting that line gives an error
too.
Looking at ovirt-stable and comparing the scripts in
/usr/share/ovirt-engine does show some changes but I don't know enough
internals to see what changed that causes this.
12 years, 1 month
[Users] Ovirt-nightly and gluster
by jvandewege
I have an question regarding ovirt-nightly and the use of gluster.
If I modify the CREATE ROLE to add SUPERUSER I can install ovirt-nightly
and if I add my two storage hosts I can create a bond and add an ip
address and it will be displayed in the webui. Further the static ip
assignment of the ovirtmgmt interface doesn't fallback to DHCP like in
ovirt-stable. Sofar OK.
Now I want to use gluster for my two storage hosts. Can I do that with
the versions of vdsm that are pushed to the hosts by ovirt? (All
machines are basic Fedora 17 installs, upto date except for the kernel
which is 3.3.4-5) and gluster-3.3.1-2 from
baseurl=http://repos.fedorapeople.org/repos/kkeithle/glusterfs/fedora-$re...
Or do I need more recent versions of vdsm/libvirt/qemu?
Thanks in advance,
Joop
12 years, 1 month