[Engine-devel] use of VM payload to set static IP info
by Messaoud Benantar
This is a multipart message in MIME format.
--=_alternative 0059357E86257AB4_=
Content-Type: text/plain; charset="US-ASCII"
Hello folks,
in our case we do need to assign static IP information to
the KVM VMs that we provision.
In looking at RHEV 3.1 i see a new Rest function for sending a payload to
a VM.
<vm>
...
<payloads>
<payload type='cdrom'>
<file name='my.txt'>
<content>some content</content>
</file>
</payload>
</payloads>
</vm>
I was wondering if anyone knows how to use VM payload to set static IP
information for a VM (both linux and windows).
Thank you.
Regards,
Messaoud Benantar
--=_alternative 0059357E86257AB4_=
Content-Type: text/html; charset="US-ASCII"
<font size=2 face="sans-serif">Hello folks,</font>
<br><font size=2 face="sans-serif">
in our case we do need to assign static IP information to the KVM
VMs that we provision.</font>
<br><font size=2 face="sans-serif">In looking at RHEV 3.1 i see a new Rest
function for sending a payload to a VM.</font>
<br>
<br><tt><font size=2><vm><br>
...<br>
<payloads><br>
<payload type='cdrom'><br>
<file name='my.txt'><br>
<content>some
content</content><br>
</file><br>
</payload><br>
</payloads><br>
</vm></font></tt><tt><font size=3><br>
</font></tt>
<br>
<br><tt><font size=3>I was wondering if anyone knows how to use VM payload
to set static IP information for a VM (both linux and windows).</font></tt>
<br><tt><font size=3>Thank you.</font></tt>
<br>
<br><font size=2 face="sans-serif">Regards,<br>
Messaoud Benantar<br>
</font>
--=_alternative 0059357E86257AB4_=--
12 years, 1 month
[Engine-devel] ovirt-engine master - no hosts in hosts tab!
by Alon Bar-Lev
Hello,
Last working:
a665ec3af7b2dd04e80007b1c062868d3e049fce from Mon Nov 5 12:28:23 2012 +0200
Master head:
2dc9b518099ec1ac3995abf1483f43cdcb6eb2b8 from Wed Nov 7 15:25:03 2012 +0100
When adding a new host, host is added to database, bootstrap is running, but hosts tab is empty!
Did not find anything that directly relates to this, CCing all committers.
Please fix,
Alon.
12 years, 1 month
[Engine-devel] engine database upgrade failure with latest
by Dead Horse
I built the latest ovirt-engine from GIT and attempted to upgrade. Version
that I attempting to upgrade was built Monday from master (commit:
a665ec3af7b2dd04e80007b1c062868d3e049fce).
Below is the what was logged by engine-upgrade:
2012-11-09 14:15:54::DEBUG::engine-upgrade::425::root:: DB Update started
2012-11-09 14:15:54::DEBUG::common_utils::390::root:: Executing command -->
'/usr/share/ovirt-engine/dbscripts/upgrade.sh -s localhost -p 5432 -u
engine -d engine_2012_11_09_14_12_52'
2012-11-09 14:15:58::DEBUG::common_utils::428::root:: output = upgrade
script detected a change in Config, View or Stored Procedure...
2012-11-09 14:15:58::DEBUG::common_utils::429::root:: stderr =
psql:create_functions.sql:666: ERROR: must be owner of function
uuid_generate_v1
2012-11-09 14:15:58::DEBUG::common_utils::430::root:: retcode = 3
2012-11-09 14:15:58::ERROR::engine-upgrade::1072::root:: Traceback (most
recent call last):
File "/usr/bin/engine-upgrade", line 1059, in main
runFunc([db.update], MSG_INFO_DB_UPDATE)
File "/usr/bin/engine-upgrade", line 607, in runFunc
func()
File "/usr/bin/engine-upgrade", line 442, in update
output, rc = utils.execCmd(cmdList=cmd, failOnError=True,
msg=MSG_ERROR_UPDATE_DB)
File "/usr/share/ovirt-engine/scripts/common_utils.py", line 433, in
execCmd
raise Exception(msg)
Exception: Error: Database update failed
- DHC
12 years, 1 month
[Engine-devel] eclipse juno vs gwt
by Laszlo Hornyak
Hi,
Just noticed that eclipse juno is adding @Ovewrride annotations to methods that are actually overriding something, like in many cases clone and equals methods in some of the classes. This is fine for the java compiler, but it in some cases the GWT compiler is not going to accept this annotation. E.g. if the return type is different than the method with same name in the superclass.
Juno is doing this by default without asking, when saving the file. So be extra-careful when editing java classes if they are shared with GWT
Laszlo
12 years, 1 month
Re: [Engine-devel] Fwd: [Users] Related to python script for Attach Cd (.iso) to a vm
by Michael Pasternak
On 11/05/2012 04:22 PM, Romil Gupta wrote:
> HI,
> I already tried this :
>
> api.storagedomains.get(name='rhevmiso').update()
> print 'updated'
> 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='tinycore.iso')
> print 'image found %s' %image
> try:
> api.vms.get(VM_NAME).cdroms.add(params.CdRom(name='cdrom',file=image))
> print 'image added to VM'
> except Exception as e:
> print 'Failed to add image \n%s' % str(e)
>
>
> But ,*it will not show the latest image that I have copied to 'rhevmiso' storage domain i.e tinycore.iso*
>
> and o/p is :
> image found none
> Failed to add image \n%s' % str(e)
>
>
> Please help me !!
listing files in api should force iso-refresh [1],
make sure your iso-upload is succeeded and your iso
file has right permissions,
if it's not the case, it's sounds like a bug, please
file ovirt-engine bug on this.
[1] queryParams.setForceRefresh(true);
>
>
> Regards
> Romil
>
>
> On Mon, Nov 5, 2012 at 7:34 PM, Michael Pasternak <mpastern(a)redhat.com <mailto:mpastern@redhat.com>> wrote:
>
> On 11/05/2012 01:23 PM, Romil Gupta wrote:
> >
> > 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
> >
> >
> > Hi,
> >
> > I have to write a python script using ovirt sdk !
> > Please tell me the refresh iso domain function in python :)
>
> sdk using very same semantics as apy does,
>
> sd = api.storagedomains.get(name="iso_domain")
> sd.files.list() // will produce [GET on /api/storagedomains/xxx/files]
>
>
> >
> > Regards ,
> > Romil
>
>
> --
>
> Michael Pasternak
> RedHat, ENG-Virtualization R&D
>
>
>
>
> --
> I don't wish to be everything to everyone, but I would like to be something to someone.
--
Michael Pasternak
RedHat, ENG-Virtualization R&D
12 years, 1 month
Re: [Engine-devel] Fwd: [Users] Related to python script for Attach Cd (.iso) to a vm
by Michael Pasternak
On 11/05/2012 01:23 PM, Romil Gupta wrote:
>
> 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
>
>
> Hi,
>
> I have to write a python script using ovirt sdk !
> Please tell me the refresh iso domain function in python :)
sdk using very same semantics as apy does,
sd = api.storagedomains.get(name="iso_domain")
sd.files.list() // will produce [GET on /api/storagedomains/xxx/files]
>
> Regards ,
> Romil
--
Michael Pasternak
RedHat, ENG-Virtualization R&D
12 years, 1 month