Re: [vdsm] [Engine-devel] [Users] adding scripts
by iheim@redhat.com
On 03/21/2014 12:14 PM, aditya mamidwar wrote:
>
> Hey,
> my team is working on adding AoE protocol support to ovirt.
Hi Aditya,
I suggest you try to reach allon mureinik or federico simoncelli over
irc to discuss what you are trying to do (I assume this is ATA over
Ethernet).
This will first require code at the vdsm side (custom hook or full blown
feature), only then can engine/gui code to match.
>
> am thus facing following difficulties:
> 1 : i wrote the required code using in bash scripting, which i wish to
> invoke after a click of button in the ovirt-portal. (which does not seem
> to be possible). can you help on that? which programming language should
> i use, and how that file should be invoked.
>
> 2. for ISOs to be available, i need to enable hosts configured in
> clusters and storage domains of ATA type. (currently NFS, iSCSI and FC
> are done). which files should i focus on changing for above functionality.
>
> 3. How do i change the custom layout of the engine? (like adding a few
> extra buttons.) please specify the files responsible.
>
> 4. the above questions stress that am facing difficulty in identifying
> files responsible for a particular module. is there a better way to do
> that instead of digging up the entire source code. ( a documentation if
> available.)
>
>
>
> On Mon, Mar 17, 2014 at 5:52 PM, Alexander Wels <awels(a)redhat.com
> <mailto:awels@redhat.com>> wrote:
>
> Aditya,
>
> That is because that file doesn't exist. We map that name to a
> servlet in
> web.xml. If you want to modify the GWT host page take a look at
> GwtDynamicHostPageServlet.java and its sub classes (for user portal and
> webadmin). As well as GwtHostPage.jsp. You will find there is almost
> nothing in
> that page as all the HTML is being generated at runtime using GWT.
>
> Since you are not really explaining what you are trying to do we
> can't help
> you better on the best strategy to achieve what you want.
>
> Alexander
>
> On Saturday, March 15, 2014 06:00:21 PM Aditya Mamidwar wrote:
> > Hey thanks on the previous issue.
> > Also is there a way i can access WebAdmin.Html to add custom
> buttons and
> > make few tweaks for personal use? I just cant find that file
> after using
> > git.
> >
> > Aditya Mamidwar
> >
> > -----Original Message-----
> > From: "Einav Cohen" <ecohen(a)redhat.com <mailto:ecohen@redhat.com>>
> > Sent: 14-03-2014 01:21
> > To: "aditya mamidwar" <aditya.mamidwar(a)gmail.com
> <mailto:aditya.mamidwar@gmail.com>>; "Vojtech Szocs"
> > <vszocs(a)redhat.com <mailto:vszocs@redhat.com>> Cc:
> "users(a)ovirt.org <mailto:users@ovirt.org>" <users(a)ovirt.org
> <mailto:users@ovirt.org>>;
> > "engine-devel(a)ovirt.org <mailto:engine-devel@ovirt.org>"
> <engine-devel(a)ovirt.org <mailto:engine-devel@ovirt.org>> Subject:
> Re: [Users]
> > adding scripts
> >
> > if you are trying to hook into UI-specific events, it sounds
> > like you will need to write an oVirt UI Plugin [1] in order to
> > do that. However, I believe that the oVirt UI Plugins
> > infrastructure doesn't support hooking to events such as "tab
> > x was selected" and/or "button b was clicked".
> > It does allow you to add new (custom) tabs/sub-tabs/buttons of
> > your own, and there is a chance that it allows you to hook
> > into events such as 'row x was selected in the grid'.
> >
> > @Vojtech will know better. Vojtech?
> >
> > if you are trying to hook into engine events (e.g. you want to
> > run a script every time a VM is started in oVirt, no matter if
> > the user started it by clicking the 'run' button in the oVirt-
> > engine webadmin, or invoked a REST API request, or an SDK
> > command), then it will require some sort of an "engine-plugin"
> > infrastructure that we don't have at the moment AFAIK.
> > there is a chance that for some of the events you will be able
> > to utilize the VDSM hooks (at the Host level) [2].
> >
> > ----
> > Thanks,
> > Einav
> >
> > [1] http://www.ovirt.org/Features/UIPlugins
> >
> > [2] http://www.ovirt.org/VDSM-Hooks
> >
> >
> > ----- Original Message -----
> >
> > > From: "aditya mamidwar" <aditya.mamidwar(a)gmail.com
> <mailto:aditya.mamidwar@gmail.com>>
> > > To: users(a)ovirt.org <mailto:users@ovirt.org>,
> engine-devel(a)ovirt.org <mailto:engine-devel@ovirt.org>
> > > Sent: Thursday, March 13, 2014 11:23:35 AM
> > > Subject: [Users] adding scripts
> > >
> > >
> > > I want to commit changes to the engine by adding some bash scripts.
> > > the scripts should be invoked once a button or tab is selected
> in the
> > > webadmin portal by the user.
> > >
> > > can someone guide on achieving this.
> > >
> > > --
> > > -Aditya Mamidwar
> > >
> > > _______________________________________________
> > > Users mailing list
> > > Users(a)ovirt.org <mailto:Users@ovirt.org>
> > > http://lists.ovirt.org/mailman/listinfo/users
>
>
>
>
> --
> -Aditya Mamidwar
>
>
> _______________________________________________
> Engine-devel mailing list
> Engine-devel(a)ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel
>
10 years, 2 months
[ANN] oVirt 3.4.0 Second Release Candidate is now available
by Sandro Bonazzola
The oVirt team is pleased to announce that the 3.4.0 Second Release Candidate is now available for testing.
Release notes and information on the changes for this update are still being worked on and will be available soon on the wiki[1].
Please ensure to follow install instruction from release notes if you're going to test it.
The existing repository ovirt-3.4.0-prerelease has been updated for delivering this release candidate and future refreshes until final release.
An oVirt Node iso will also be available soon.
We decided to postpone Final Release by one week in order to properly test the bugs fixed since last Release Candidate.
Help us make this the best release ever, testing it yourself!
[1] http://www.ovirt.org/OVirt_3.4.0_release_notes
--
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
10 years, 2 months
creating ovirtmgmt bridge using tagged vlans
by Sandro Bonazzola
Hi,
I'm working on: Bug 1072027 - hosted-engine setup fails when using VLAN tagged interfaces
Provided the following caps:
# vdsClient -s localhost getVdsHardwareInfo
systemFamily = 'Not Specified'
systemManufacturer = 'Dell Inc.'
systemProductName = 'OptiPlex 7010'
systemSerialNumber = 'DYC5YX1'
systemUUID = '4C4C4544-0059-4310-8035-C4C04F595831'
systemVersion = '01'
[root@dellserver network-scripts]# vdsClient -s localhost getVdsCap
getVdsCapabilities getVdsCaps
[root@dellserver network-scripts]# vdsClient -s localhost getVdsCaps
HBAInventory = {'FC': [], 'iSCSI': [{'InitiatorName': 'iqn.1994-05.com.redhat:babababa'}]}
ISCSIInitiatorName = 'iqn.1994-05.com.redhat:babababa'
bondings = {'bond0': {'addr': '',
'cfg': {},
'hwaddr': '5a:46:b1:db:ec:9b',
'ipv6addrs': [],
'mtu': '1500',
'netmask': '',
'slaves': []}}
bridges = {';vdsmdummy;': {'addr': '',
'cfg': {},
'gateway': '',
'ipv6addrs': ['fe80::8c8a:edff:fe92:b332/64'],
'ipv6gateway': '::',
'mtu': '1500',
'netmask': '',
'ports': [],
'stp': 'off'}}
clusterLevels = ['3.0', '3.1', '3.2', '3.3', '3.4']
cpuCores = '4'
cpuFlags =
'fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,ht,tm,pbe,syscall,nx,rdtscp,lm,constant_tsc,arch_perfmon,pebs,bts,rep_good,nopl,xtopology,nonstop_tsc,aperfmperf,eagerfpu,pni,pclmulqdq,dtes64,monitor,ds_cpl,vmx,smx,est,tm2,ssse3,cx16,xtpr,pdcm,pcid,sse4_1,sse4_2,x2apic,popcnt,tsc_deadline_timer,aes,xsave,avx,f16c,rdrand,lahf_lm,ida,arat,epb,xsaveopt,pln,pts,dtherm,tpr_shadow,vnmi,flexpriority,ept,vpid,fsgsbase,smep,erms,model_Nehalem,model_Conroe,model_coreduo,model_core2duo,model_Penryn,model_Westmere,model_n270,model_SandyBridge'
cpuModel = 'Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz'
cpuSockets = '1'
cpuSpeed = '1864.156'
cpuThreads = '8'
emulatedMachines = ['pc',
'pc-q35-1.4',
'pc-q35-1.5',
'q35',
'isapc',
'pc-0.10',
'pc-0.11',
'pc-0.12',
'pc-0.13',
'pc-0.14',
'pc-0.15',
'pc-1.0',
'pc-1.1',
'pc-1.2',
'pc-1.3',
'pc-i440fx-1.4',
'pc-i440fx-1.5',
'none']
guestOverhead = '65'
hooks = {}
kvmEnabled = 'true'
lastClient = '127.0.0.1'
lastClientIface = 'lo'
management_ip = '0.0.0.0'
memSize = '15936'
netConfigDirty = 'False'
networks = {}
nics = {'em1': {'addr': '192.168.1.105',
'cfg': {'DEVICE': 'em1',
'HWADDR': 'b8:ca:3a:76:9a:43',
'MTU': '1500',
'ONBOOT': 'yes'},
'hwaddr': 'b8:ca:3a:76:9a:43',
'ipv6addrs': ['fe80::baca:3aff:fe76:9a43/64'],
'mtu': '1500',
'netmask': '255.255.255.0',
'speed': 1000}}
operatingSystem = {'name': 'Fedora', 'release': '8', 'version': '19'}
packages2 = {'kernel': {'buildtime': 1394207804.0,
'release': '100.fc19.x86_64',
'version': '3.13.6'},
'libvirt': {'buildtime': 1387094943,
'release': '1.fc19',
'version': '1.1.3.2'},
'mom': {'buildtime': 1391183561, 'release': '1.fc19', 'version': '0.4.0'},
'qemu-img': {'buildtime': 1384762225,
'release': '2.fc19',
'version': '1.6.1'},
'qemu-kvm': {'buildtime': 1384762225,
'release': '2.fc19',
'version': '1.6.1'},
'spice-server': {'buildtime': 1383130020,
'release': '3.fc19',
'version': '0.12.4'},
'vdsm': {'buildtime': 1394889953,
'release': '2.git7a51fe1.fc19',
'version': '4.14.5'}}
reservedMem = '321'
rngSources = ['random']
software_revision = '2'
software_version = '4.14'
supportedENGINEs = ['3.0', '3.1', '3.2', '3.3', '3.4']
supportedProtocols = ['2.2', '2.3']
uuid = '4C4C4544-0059-4310-8035-C4C04F595831'
version_name = 'Snow Man'
vlans = {'em1.5': {'addr': '',
'cfg': {'DEVICE': 'em1.5',
'HWADDR': 'b8:ca:3a:76:9a:43',
'MTU': '1500',
'ONBOOT': 'yes',
'VLAN': 'yes'},
'iface': 'em1',
'ipv6addrs': ['fe80::baca:3aff:fe76:9a43/64'],
'mtu': '1500',
'netmask': '',
'vlanid': 5}}
vmTypes = ['kvm']
[root@dellserver network-scripts]# vdsClient -s localhost getVdsCaps iface=em1.5
HBAInventory = {'FC': [], 'iSCSI': [{'InitiatorName': 'iqn.1994-05.com.redhat:babababa'}]}
ISCSIInitiatorName = 'iqn.1994-05.com.redhat:babababa'
bondings = {'bond0': {'addr': '',
'cfg': {},
'hwaddr': '5a:46:b1:db:ec:9b',
'ipv6addrs': [],
'mtu': '1500',
'netmask': '',
'slaves': []}}
bridges = {';vdsmdummy;': {'addr': '',
'cfg': {},
'gateway': '',
'ipv6addrs': ['fe80::8c8a:edff:fe92:b332/64'],
'ipv6gateway': '::',
'mtu': '1500',
'netmask': '',
'ports': [],
'stp': 'off'}}
clusterLevels = ['3.0', '3.1', '3.2', '3.3', '3.4']
cpuCores = '4'
cpuFlags =
'fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,ht,tm,pbe,syscall,nx,rdtscp,lm,constant_tsc,arch_perfmon,pebs,bts,rep_good,nopl,xtopology,nonstop_tsc,aperfmperf,eagerfpu,pni,pclmulqdq,dtes64,monitor,ds_cpl,vmx,smx,est,tm2,ssse3,cx16,xtpr,pdcm,pcid,sse4_1,sse4_2,x2apic,popcnt,tsc_deadline_timer,aes,xsave,avx,f16c,rdrand,lahf_lm,ida,arat,epb,xsaveopt,pln,pts,dtherm,tpr_shadow,vnmi,flexpriority,ept,vpid,fsgsbase,smep,erms,model_Nehalem,model_Conroe,model_coreduo,model_core2duo,model_Penryn,model_Westmere,model_n270,model_SandyBridge'
cpuModel = 'Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz'
cpuSockets = '1'
cpuSpeed = '2287.164'
cpuThreads = '8'
emulatedMachines = ['pc',
'pc-q35-1.4',
'pc-q35-1.5',
'q35',
'isapc',
'pc-0.10',
'pc-0.11',
'pc-0.12',
'pc-0.13',
'pc-0.14',
'pc-0.15',
'pc-1.0',
'pc-1.1',
'pc-1.2',
'pc-1.3',
'pc-i440fx-1.4',
'pc-i440fx-1.5',
'none']
guestOverhead = '65'
hooks = {}
kvmEnabled = 'true'
lastClient = '127.0.0.1'
lastClientIface = 'lo'
management_ip = '0.0.0.0'
memSize = '15936'
netConfigDirty = 'False'
networks = {}
nics = {'em1': {'addr': '192.168.1.105',
'cfg': {'DEVICE': 'em1',
'HWADDR': 'b8:ca:3a:76:9a:43',
'MTU': '1500',
'ONBOOT': 'yes'},
'hwaddr': 'b8:ca:3a:76:9a:43',
'ipv6addrs': ['fe80::baca:3aff:fe76:9a43/64'],
'mtu': '1500',
'netmask': '255.255.255.0',
'speed': 1000}}
operatingSystem = {'name': 'Fedora', 'release': '8', 'version': '19'}
packages2 = {'kernel': {'buildtime': 1394207804.0,
'release': '100.fc19.x86_64',
'version': '3.13.6'},
'libvirt': {'buildtime': 1387094943,
'release': '1.fc19',
'version': '1.1.3.2'},
'mom': {'buildtime': 1391183561, 'release': '1.fc19', 'version': '0.4.0'},
'qemu-img': {'buildtime': 1384762225,
'release': '2.fc19',
'version': '1.6.1'},
'qemu-kvm': {'buildtime': 1384762225,
'release': '2.fc19',
'version': '1.6.1'},
'spice-server': {'buildtime': 1383130020,
'release': '3.fc19',
'version': '0.12.4'},
'vdsm': {'buildtime': 1394889953,
'release': '2.git7a51fe1.fc19',
'version': '4.14.5'}}
reservedMem = '321'
rngSources = ['random']
software_revision = '2'
software_version = '4.14'
supportedENGINEs = ['3.0', '3.1', '3.2', '3.3', '3.4']
supportedProtocols = ['2.2', '2.3']
uuid = '4C4C4544-0059-4310-8035-C4C04F595831'
version_name = 'Snow Man'
vlans = {'em1.5': {'addr': '',
'cfg': {'DEVICE': 'em1.5',
'HWADDR': 'b8:ca:3a:76:9a:43',
'MTU': '1500',
'ONBOOT': 'yes',
'VLAN': 'yes'},
'iface': 'em1',
'ipv6addrs': ['fe80::baca:3aff:fe76:9a43/64'],
'mtu': '1500',
'netmask': '',
'vlanid': 5}}
vmTypes = ['kvm']
How have I to call vdsClient addNetwork for creating the bridge using em1.5 ?
--
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
10 years, 2 months
vdsm call
by Dan Kenigsberg
The following meeting has been modified:
Subject: vdsm call
Organizer: "Dan Kenigsberg" <dkenigsb(a)redhat.com>
Time: 2:30:00 PM - 3:30:00 PM GMT +00:00 Britain, Ireland, Portugal
Recurrence : Every 2 week(s) on Tuesday No end date Effective Mar 18, 2014
Invitees: vdsm-devel(a)lists.fedorahosted.org
*~*~*~*~*~*~*~*~*~*
If you receive this e-mail, it means that you are invited to the
bi-weekly phone meeting of Vdsm developers. This is an opportunity
to discuss design problems, pending patches, and persistent bugs.
Even if you do not join, you may solicit subjects for discussion on
the mailing list or over #vdsm(a)irc.freenode.net.
Note the new meeting time and conference code.
Conference code: 353-86-075-901.
Dial-in information:
https://www.intercallonline.com/listNumbersByCode.action?confCode=3538607...
10 years, 2 months
vdsm call
by Dan Kenigsberg
The following is a new meeting request:
Subject: vdsm call
Organizer: "Dan Kenigsberg" <dkenigsb(a)redhat.com>
Time: Tuesday, March 18, 2014, 2:30:00 PM - 3:30:00 PM GMT +00:00 Britain, Ireland, Portugal
Invitees: vdsm-devel(a)lists.fedorahosted.org
*~*~*~*~*~*~*~*~*~*
If you receive this e-mail, it means that you are invited to the
bi-weekly phone meeting of Vdsm developers. This is an opportunity
to discuss design problems, pending patches, and persistent bugs.
Even if you do not join, you may solicit subjects for discussion on
the mailing list or over #vdsm(a)irc.freenode.net.
Note the new meeting time and conference code.
Conference code: 353-86-075-901.
Dial-in information:
https://www.intercallonline.com/listNumbersByCode.action?confCode=3538607...
10 years, 2 months
Profiling and benchmarking VDSM
by fromani@redhat.com
Hello everyone,
In the coming weeks, starting today, I'm beginning an effort to profile and benchmark VDSM
in order to let it scale better and address some performance issues which are surfacing.
On this mail (thread) I'd like to share and discuss my plan.
At the moment, the plan is:
- define and share (wiki page?) benchmarking/profiling scenarios,
aiming first to reproduce the "Monday Morning" effect (mass startup of many VMs), possibly
the sampling threading battle and after that anything else which may be useful.
- (maybe?) provide a benchmarking results template, something like a spreadsheet, in order
to make the results easily processable and shareable (e.g. 'A' does the tests, 'B' analyzes
the results and so on)
- create minimal support infrastructure (scripts) to run the benchmarks
defined on the bullet point above, gather the profile data and present it
- measure the impact of performance improvements, like http://gerrit.ovirt.org/#/c/25678/
- find new bottlenecks
- share the results
The goal is to have a set of tools which allow us to find possible bottlenecks and to easily
reproduce the results.
For the long term, my not-so-secret-wish is to have something like http://speed.pypy.org
(http://bench.ovirt.org ? :) ) which is really nice and, AFAIK, fully automated :)
Any suggestion or comment is the most welcome.
I'll update this thread with further information in the next days.
Bests,
--
Francesco Romani
RedHat Engineering Virtualization R & D
Phone: 8261328
IRC: fromani
10 years, 2 months
deepcopy error when saveState
by bigclouds
what is the reason of this error?
Thread-20::DEBUG::2014-03-12 19:04:23,191::BindingXMLRPC::161::vds::(wrapper) client [192.168.0.113]
Thread-20::DEBUG::2014-03-12 19:04:23,191::task::563::TaskManager.Task::(_updateState) Task=`30301b19-55ba-4152-98fd-0301d1c3975a`::moving from state init -> state preparing
File "/usr/lib64/python2.7/copy.py", line 257, in _deepcopy_dict
File "/usr/lib64/python2.7/copy.py", line 190, in deepcopy
File "/usr/lib64/python2.7/copy.py", line 334, in _reconstruct
File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
File "/usr/lib64/python2.7/copy.py", line 257, in _deepcopy_dict
File "/usr/lib64/python2.7/copy.py", line 190, in deepcopy
File "/usr/lib64/python2.7/copy.py", line 334, in _reconstruct
File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
File "/usr/lib64/python2.7/copy.py", line 257, in _deepcopy_dict
File "/usr/lib64/python2.7/copy.py", line 190, in deepcopy
File "/usr/lib64/python2.7/copy.py", line 329, in _reconstruct
File "/usr/lib64/python2.7/copy_reg.py", line 93, in __newobj__
TypeError: object.__new__(PyCapsule) is not safe, use PyCapsule.__new__()
Thread-13::DEBUG::2014-03-12 19:04:21,526::vm::2226::vm.Vm::(_startUnderlyingVm) vmId=`6d32200d-43ee-48a5-8ee9-fe6beaf2ca9d`::_ongoingCreations released
Thread-13::INFO::2014-03-12 19:04:21,550::vm::2250::vm.Vm::(_startUnderlyingVm) vmId=`6d32200d-43ee-48a5-8ee9-fe6beaf2ca9d`::Skipping errors on recovery
Traceback (most recent call last):
File "/usr/share/vdsm/vm.py", line 2232, in _startUnderlyingVm
self.lastStatus = 'Up'
File "/usr/share/vdsm/vm.py", line 1915, in _set_lastStatus
self.saveState()
File "/usr/share/vdsm/vm.py", line 2309, in saveState
self._saveStateInternal()
File "/usr/share/vdsm/vm.py", line 2320, in _saveStateInternal
toSave = deepcopy(self.status())
File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
File "/usr/lib64/python2.7/copy.py", line 257, in _deepcopy_dict
File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
File "/usr/lib64/python2.7/copy.py", line 230, in _deepcopy_list
File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
File "/usr/lib64/python2.7/copy.py", line 257, in _deepcopy_dict
File "/usr/lib64/python2.7/copy.py", line 190, in deepcopy
File "/usr/lib64/python2.7/copy.py", line 334, in _reconstruct
File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
File "/usr/lib64/python2.7/copy.py", line 257, in _deepcopy_dict
File "/usr/lib64/python2.7/copy.py", line 190, in deepcopy
File "/usr/lib64/python2.7/copy.py", line 334, in _reconstruct
File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
File "/usr/lib64/python2.7/copy.py", line 257, in _deepcopy_dict
File "/usr/lib64/python2.7/copy.py", line 190, in deepcopy
File "/usr/lib64/python2.7/copy.py", line 329, in _reconstruct
File "/usr/lib64/python2.7/copy_reg.py", line 93, in __newobj__
TypeError: object.__new__(PyCapsule) is not safe, use PyCapsule.__new__()
10 years, 2 months
The new GIL in python 3.2+
by fromani@redhat.com
Hi everyone
I found some time ago this very good presentation about the improvements
made on python 3.2+ for the GIL (which unfortunately is still there... I think we need pypy to get rid of it)
http://www.dabeaz.com/python/NewGIL.pdf
--
Francesco Romani
RedHat Engineering Virtualization R & D
Phone: 8261328
IRC: fromani
10 years, 2 months