1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

28 commits

Author SHA1 Message Date
Carl Caum
530122de30 Add source for getting instance mac address
Previous to this commit, the only source to obtain the mac address for
the primary interface on an instance was through libvirt directly.  If
libvirt was unable to retrieve the mac address, it would be nil.  This
commit adds the ability to dump the XML using the virsh command and
attempting to retrieve the mac address from that.
2012-08-03 20:44:40 -07:00
Kevin Menard
dcefc2d7de Fixed #875: Loosen multi_json version. 2012-04-25 10:31:28 -04:00
Steve Smith
d89dd56fe7 Use MultiJSON #dump and #load rather than #encode and #decode
MultiJSON deprecated these methods in 1.3.0 in favour of the new ones.
This requires an update to the gemspec to ensure ~>1.3
2012-04-20 13:09:14 +01:00
Ohad Levy
0383957172 adds deprecation on vnc_port 2012-04-09 12:05:22 +03:00
Ohad Levy
244bc10010 [libvirt] added display attributes and allowed to change display of a running server 2012-04-08 18:37:26 +03:00
Amos Benari
fe0f240278 added mock implementation 2012-04-05 17:15:08 +03:00
Amos Benari
ceeae011af [libVirt] added tests 2012-04-05 09:07:24 +03:00
Ohad Levy
e983c672d4 add supports for defining/extracting libvit boot order 2012-04-04 15:36:15 +03:00
Ohad Levy
9d78d29a19 [libvirt] refactored libvirt entire code
* moved to using requests
* added vm nic/nics
* kept compatability with the existing interfaces
* moved util classes into util subdir

Signed-off-by: Amos Benari <abenari@redhat.com>
2012-04-04 15:35:05 +03:00
Ohad Levy
1c6d62fc2f fixes libvirt wrong state check 2012-01-25 14:32:47 +02:00
Ohad Levy
e38b82666a minor cleanups 2012-01-25 14:32:47 +02:00
Ohad Levy
73ac4553bc first cut of cleaning up libvirt server class
This patch tries not to change any functioanlity, rather just reoginize the code.
2012-01-19 15:43:19 +02:00
Patrick Debois
f3edfb7713 Merge pull request #629 from rubiojr/add-env-var-to-ip-command
* Add server_name environment variable to ip_command
2011-11-30 07:37:04 -08:00
Sergio Rubio
6eba50d362 * implement :destroy_volumes in Server.destroy (libvirt provider) 2011-11-30 13:15:12 +01:00
Sergio Rubio
4ddee13d29 * Add server_name environment variable to ip_command 2011-11-30 12:10:46 +01:00
Patrick Debois
6c0d4b6d2b another log entry style resused old ethernet 2011-09-21 14:33:56 +02:00
Patrick Debois
1a576820ae vmfusion provider , requires the fission gem (pull request pending) 2011-09-16 14:57:00 +02:00
Patrick Debois
a842b3699e [Libvirt|Compute] renamed all disk_ params for server creation to volume_ to make it consistent with the object type volume 2011-09-14 09:33:58 +02:00
Patrick Debois
4740174f12 [Libvirt] renamed 'raw' connection to raw in the Fog Connection
Because the initial provider was copied from the virtualbox example we ended up with a notation
connection.connection for the raw provider

The function of the raw are injected on the connection object. Still in analogy with the raw
for server , volume, ... it makes sense to rename connection.connection to connection.raw

Also all calls to the raw connection are now explicit
2011-09-13 07:34:18 +02:00
Patrick Debois
3d7adcf7ca [Libvirt] added blocked state and corrected crashed to shutoff state 2011-09-12 20:28:09 +02:00
Patrick Debois
3a6ab8e600 [Libvirt] rename xml_desc to xml as an attribute and hide all non_dynamic attributes from fog console 2011-09-12 20:11:58 +02:00
Patrick Debois
f23155c4f2 [Libvirt] Remove the newlines after running the local ip_command 2011-09-12 20:01:20 +03:00
Patrick Debois
22e804c3a9 [Libvirt] more specific error if the ip_command results in string that has no ip-address format 2011-09-12 19:55:36 +03:00
Patrick Debois
384b7e528d [Libvirt] initialize the ip_address as an empty string 2011-09-12 18:42:16 +03:00
Patrick Debois
31ab178dac [Libvirt] corrected typo for appending string output to IO.popen 2011-09-12 18:36:50 +03:00
Patrick Debois
308569b016 [Libvirt] Provided better solution for ip_command : use shell variable instead of ruby string for mac-address 2011-09-12 18:33:38 +03:00
Patrick Debois
7e1bc34f29 [Libvirt] Enable to pass an libvirt_ip_command for looking up the mac -> ip_address . Using eval to allow for passing of mac address in ip_command 2011-09-12 18:22:37 +03:00
geemus
529591f772 [compute|libvirt] move libvirt compute to its own shared area (namespacing should probably be corrected) 2011-08-29 10:24:39 -05:00
Renamed from lib/fog/compute/models/libvirt/server.rb (Browse further)