I was able to do the image but it says it cannot set the public
interface because is already in use !?!!?

My problem is that now I cannot deploy any other image that works
before, all the reservations fails. I attach the output email. Can
anyone help ?

2014-03-18 5:01 GMT+00:00 Aaron Coburn <[email protected]>:
> Hi, António,
> As I had mentioned earlier, this module only sort of worked for Fedora 19. I 
> abandoned work on it because CentOS and Ubuntu were significantly easier to 
> deal with. The module I provided should be considered only a starting point 
> for an actual OS module for Fedora. If you plan to work on it, you will need 
> to become very familiar with the OS::Linux module. As needed, the 
> OS::Linux::Fedora module should override methods in the OS::Linux module.
>
> Regards,
> Aaron
>
>
> On Mar 17, 2014, at 2:16 PM, António Aragão <[email protected]> wrote:
>
>> I have put the following lines in the database:
>>
>> insert into module values (28,'os_linux_fedora','Fedora Linux OS
>> Module','Fedora Module introduzido por
>> apa','VCL::Module::OS::Linux::Fedora');
>> insert into OS values (45,'vmwarefedora','Fedora
>> (VMware)','linux','vmware','vmware_images',28);
>>
>> I try to do an image of Fedora Core 20 and the process is hangout (the
>> last lines):
>>
>> 2014-03-17 
>> 18:03:52|28627|202:202|image|utils.pm:run_ssh_command(5020)|run_ssh_command
>> output:
>> 2014-03-17 18:03:52|28627|202:202|image|utils.pm:run_ssh_command(5034)|SSH
>> command executed on fc20, returning (0, "")
>> 2014-03-17 18:03:52|28627|202:202|image|Linux.pm:delete_file(1504)|deleted
>> '/var/lib/dhclient/*.leases' on fc20
>> 2014-03-17 
>> 18:03:52|28627|202:202|image|utils.pm:run_ssh_command(4902)|executing
>> SSH command on fc20:
>> |28627|202:202|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -o
>> StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o
>> ConnectionAttempts=1 -o ConnectTimeout=3 -l root -p 22 -x fc20 'stat
>> /var/lib/dhclient/*\.leases' 2>&1
>> 2014-03-17 
>> 18:03:53|28627|202:202|image|utils.pm:run_ssh_command(5020)|run_ssh_command
>> output:
>> |28627|202:202|image| stat: cannot stat '/var/lib/dhclient/*.leases':
>> No such file or directory
>> 2014-03-17 18:03:53|28627|202:202|image|utils.pm:run_ssh_command(5030)|SSH
>> command executed on fc20, command:
>> |28627|202:202|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -o
>> StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o
>> ConnectionAttempts=1 -o ConnectTimeout=3 -l root -p 22 -x fc20 'stat
>> /var/lib/dhclient/*\.leases' 2>&1
>> |28627|202:202|image| returning (1, "stat: cannot stat '/var/lib/...")
>> 2014-03-17 18:03:53|28627|202:202|image|Linux.pm:pre_capture(198)|shutting
>> down fc20, provisioning module specified end state: off
>> 2014-03-17 18:03:53|28627|202:202|image|Linux.pm:shutdown(2830)|shutting
>> down fc20 and waiting for power off
>> 2014-03-17 
>> 18:03:53|28627|202:202|image|Module.pm:code_loop_timeout(887)|waiting
>> for fc20 to respond to SSH, maximum of 0 seconds
>> 2014-03-17 18:03:53|28627|202:202|image|OS.pm:is_ssh_responding(678)|fc20
>> is responding to SSH, port 22: open, port 24: closed
>> 2014-03-17 
>> 18:03:53|28627|202:202|image|Module.pm:code_loop_timeout(900)|waiting
>> for fc20 to respond to SSH, code returned true
>> 2014-03-17 
>> 18:03:53|28627|202:202|image|utils.pm:run_ssh_command(4902)|executing
>> SSH command on fc20:
>> |28627|202:202|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -o
>> StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o
>> ConnectionAttempts=1 -o ConnectTimeout=3 -l root -p 22 -x fc20
>> '/sbin/shutdown -h now' 2>&1
>>
>> The vm was shutdown correctly.
>>
>> Any clues ?
>>
>>
>> 2014-03-17 17:16 GMT+00:00 António Aragão <[email protected]>:
>>> Aaron Coburn,
>>>
>>> how can I configure VCL to use this module ? I want to try it.
>>>
>>> Thanks.
>>>
>>> 2014-03-14 13:37 GMT+00:00 Aaron Coburn <[email protected]>:
>>>> Attached is my OS::Linux::Fedora module. (The ASF license is mentioned in
>>>> the header)
>>>>
>>>> As I said, I was able to capture the image, but the network interfaces (as 
>>>> I
>>>> recall) kept getting renamed: Fedora doesn't use eth0, eth1, etc. So there
>>>> was some issue with binding sshd to one or both of those interfaces on
>>>> startup. I am not actually using this module, since CentOS and Ubuntu ended
>>>> up being much easier to deal with. In any case, I hope this helps.
>>>>
>>>>
>>>> Aaron C.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Mar 14, 2014, at 9:11 AM, Aaron Peeler <[email protected]> wrote:
>>>>
>>>>> Aaron,
>>>>> Anything you have might help and is appreciated.
>>>>> -A
>>>>>
>>>>> On Thu, Mar 13, 2014 at 2:02 PM, Aaron Coburn <[email protected]> wrote:
>>>>>> Last summer I tried getting Fedora 19 to work with the VCL but was never
>>>>>> entirely successful (I haven't tried working with Fedora 20). The main
>>>>>> issue
>>>>>> related to network configurations: Fedora has its own way of organizing
>>>>>> network interfaces, and certain commands (e.g. ifconfig) produce output
>>>>>> in a
>>>>>> format different than what is expected by the standard OS::Linux module.
>>>>>> I
>>>>>> ended up writing a custom module (OS::Linux::Fedora), and was able to
>>>>>> successfully capture images. When new instances were provisioned, there
>>>>>> was
>>>>>> something I had to do manually to make sure that sshd started up
>>>>>> properly,
>>>>>> and then, a user could connect to the reservation. But at that point I
>>>>>> gave
>>>>>> up on Fedora and told my colleagues that they could have CentOS and
>>>>>> Ubuntu
>>>>>> (but not Fedora), both of which work great in the VCL. If you'd like to
>>>>>> see
>>>>>> the semi-functional OS::Linux::Fedora module, let me know.
>>>>>>
>>>>>> Aaron Coburn
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Aaron Coburn
>>>>>> System Administrator / Programmer
>>>>>> Web Services, Amherst College
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mar 13, 2014, at 1:37 PM, Aaron Peeler <[email protected]> wrote:
>>>>>>
>>>>>> I've not. So far I ran into issues with ssh logins a fresh install of
>>>>>> Fedora20, it looked like identity exchange errors. Then got side
>>>>>> tracked before I could finish trouble shooting the issue.
>>>>>>
>>>>>> I'll try again soon.
>>>>>> Aaron
>>>>>>
>>>>>>
>>>>>> On Thu, Mar 13, 2014 at 1:32 PM, António Aragão <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>> Josh,
>>>>>>
>>>>>> thanks for the information. I will do it. Does anyone made Fedora Core
>>>>>> 20 image successful ?
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> 2014-03-13 17:16 GMT+00:00 Josh Thompson <[email protected]>:
>>>>>>
>>>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>>>> Hash: SHA1
>>>>>>
>>>>>> Aarago,
>>>>>>
>>>>>> Junaid provided some great info.  You can remove the affiliations as he
>>>>>> explained.  However, you may just want to remove the ability to use them
>>>>>> for
>>>>>> logging in from the conf.php file so that you maintain the entry for any
>>>>>> users
>>>>>> that had the affiliation.  If you do remove the entries from the
>>>>>> affiliation
>>>>>> table, you'll need to handle any users that had the affiliation.  You can
>>>>>> either just change their affiliation to something else that you keep an
>>>>>> entry
>>>>>> for, or you can remove the users.  If you remove the users, you'll want
>>>>>> to
>>>>>> make sure they are not assigned as the owner of any resources.  You also
>>>>>> may
>>>>>> want to delete all of their records from the log tables.
>>>>>>
>>>>>> Josh
>>>>>>
>>>>>> On Thursday, March 13, 2014 9:48:18 AM Junaid Ali wrote:
>>>>>>
>>>>>> Hello Aarago,
>>>>>> The images can be managed from the web interface using "Manage images"
>>>>>> menu on the left (when logged in as Administrator account). You need to
>>>>>> use "Edit image Profiles" option and then you can delete the images that
>>>>>> are published within the system. You need to make sure that you don't
>>>>>> have
>>>>>> any current reservations which are using those reservations otherwise the
>>>>>> image will not be deleted.
>>>>>> The above steps only removes the image from being available in the
>>>>>> reservation system. To delete the actual image files you will need to
>>>>>> delete the image folder from each of the VMHost server and finally from
>>>>>> the shared image repository.
>>>>>>
>>>>>> Regarding, affiliations they are added and removed from the database
>>>>>> manually. The table you need to edit is named "affiliations". Please make
>>>>>> sure to remove the user groups for that affiliation before you remove the
>>>>>> actual database entry. If you also have the web authentication configured
>>>>>> you will need to update the web configuration file accordingly. For more
>>>>>> details refer
>>>>>>
>>>>>> http://vcl.apache.org/docs/ldapauth.html#adding-ldap-authentication-to-the
>>>>>> -web-code
>>>>>>
>>>>>> VCL Gurus,
>>>>>> Please correct me if I missed anything.
>>>>>>
>>>>>> Thanks.
>>>>>> Junaid Ali
>>>>>>
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: [email protected] [mailto:[email protected]] On
>>>>>> Behalf
>>>>>> Of António Aragão
>>>>>> Sent: Thursday, March 13, 2014 6:20 AM
>>>>>> To: [email protected]
>>>>>> Subject: Some tips
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> i need to purge old images and affiliations. How can I do that ?
>>>>>>
>>>>>> --
>>>>>> http://www.di.uminho.pt/~apa/email/cartao_virtual_email_aaragao.png
>>>>>>
>>>>>> - --
>>>>>> - -------------------------------
>>>>>> Josh Thompson
>>>>>> VCL Developer
>>>>>> North Carolina State University
>>>>>>
>>>>>> my GPG/PGP key can be found at pgp.mit.edu
>>>>>>
>>>>>> All electronic mail messages in connection with State business which
>>>>>> are sent to or received by this account are subject to the NC Public
>>>>>> Records Law and may be disclosed to third parties.
>>>>>> -----BEGIN PGP SIGNATURE-----
>>>>>> Version: GnuPG v2.0.22 (GNU/Linux)
>>>>>>
>>>>>> iEYEARECAAYFAlMh5/MACgkQV/LQcNdtPQOmoACfXPeQ/TFjepYKLUrrevflARYI
>>>>>> h1kAmgIZRzsKJSADYP5p0FxFe8YxP6xH
>>>>>> =iBEJ
>>>>>> -----END PGP SIGNATURE-----
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> http://www.di.uminho.pt/~apa/email/cartao_virtual_email_aaragao.png
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Aaron Peeler
>>>>>> Program Manager
>>>>>> Virtual Computing Lab
>>>>>> NC State University
>>>>>>
>>>>>> All electronic mail messages in connection with State business which
>>>>>> are sent to or received by this account are subject to the NC Public
>>>>>> Records Law and may be disclosed to third parties.
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Aaron Peeler
>>>>> Program Manager
>>>>> Virtual Computing Lab
>>>>> NC State University
>>>>>
>>>>> All electronic mail messages in connection with State business which
>>>>> are sent to or received by this account are subject to the NC Public
>>>>> Records Law and may be disclosed to third parties.
>>>>
>>>
>>>
>>>
>>> --
>>> http://www.di.uminho.pt/~apa/email/cartao_virtual_email_aaragao.png
>>
>>
>>
>> --
>> http://www.di.uminho.pt/~apa/email/cartao_virtual_email_aaragao.png
>



-- 
http://www.di.uminho.pt/~apa/email/cartao_virtual_email_aaragao.png

Attachment: txt1
Description: Binary data

Reply via email to