Discussion:
[Spacewalk-list] vmware snapshots
Casey Gadd
2018-11-24 17:26:14 UTC
Permalink
Is there any way to create snapshots before the patch process? We are using VMware.

--
Casey H Gadd, M.S.
Information Systems Technician
Office: (509) 422-8495
Cell: (509) 560-0668

Okanogan County Public Utility District No. 1
1331 Second Ave. N.
Okanogan, WA 98840
Raymond Setchfield
2018-11-24 17:36:04 UTC
Permalink
The way I would probably tackle that one is by executing via remote command
the snapshot - this will have to be a bespoke script which is written on
this machine which can speak to the API of your vcenter. I would be using
something like pyvmomi to do the execution of the snapshot, and once thats
completed to do the patch work of the machine via the remote command too.
If your hostname matches your vmware name then you could do something
smarter, but you may need to change the script for each host.

https://github.com/vmware/pyvmomi

There is probably better ways of doing this, and cleaner ways. But this is
something that I would think about doing this off the top of my head.

I hope this helps

Ray
Post by Casey Gadd
Is there any way to create snapshots before the patch process? We are using VMware.
*--*
*Casey H Gadd, M.S.*
*Information Systems Technician*
Office: (509) 422-8495
Cell: (509) 560-0668
Okanogan County Public Utility District No. 1
1331 Second Ave. N.
Okanogan, WA 98840
_______________________________________________
Spacewalk-list mailing list
https://www.redhat.com/mailman/listinfo/spacewalk-list
Yakin, Francis
2018-11-26 19:16:09 UTC
Permalink
Yes, you can. That what I am using now instead of create a snapshot from spacewalk.

Francis

From: spacewalk-list-***@redhat.com [mailto:spacewalk-list-***@redhat.com] On Behalf Of Casey Gadd
Sent: Saturday, November 24, 2018 9:26 AM
To: spacewalk-***@redhat.com
Subject: [Spacewalk-list] vmware snapshots

Is there any way to create snapshots before the patch process? We are using VMware.

--
Casey H Gadd, M.S.
Information Systems Technician
Office: (509) 422-8495
Cell: (509) 560-0668

Okanogan County Public Utility District No. 1
1331 Second Ave. N.
Okanogan, WA 98840
Waldirio Manhães Pinheiro
2018-11-27 01:21:13 UTC
Permalink
Hello Casey,

Sorry, is not clear your necessity to me. Would you like to do the snapshot
of your SW server? or Clients before the patch?

______________
Best
Waldirio
Skype: waldirio
Site: www.waldirio.com.br
LinkedIn: https://www.linkedin.com/in/waldirio
Post by Yakin, Francis
Yes, you can. That what I am using now instead of create a snapshot from spacewalk.
Francis
*Sent:* Saturday, November 24, 2018 9:26 AM
*Subject:* [Spacewalk-list] vmware snapshots
Is there any way to create snapshots before the patch process? We are using VMware.
*--*
*Casey H Gadd, M.S.*
*Information Systems Technician*
Office: (509) 422-8495
Cell: (509) 560-0668
Okanogan County Public Utility District No. 1
1331 Second Ave. N.
Okanogan, WA 98840
_______________________________________________
Spacewalk-list mailing list
https://www.redhat.com/mailman/listinfo/spacewalk-list
Yakin, Francis
2018-11-27 01:35:07 UTC
Permalink
I think what he meant was the clients that on VMware. For me, I like to take a snapshot from VMware than take a snapshot from SW. It will works 100% in our env.
So, when you have a problem on the applications after the patching, you just roll back the previous version from VMware.

That’s my 2 cents.

Francis


From: spacewalk-list-***@redhat.com [mailto:spacewalk-list-***@redhat.com] On Behalf Of Waldirio Manhães Pinheiro
Sent: Monday, November 26, 2018 5:21 PM
To: spacewalk-***@redhat.com
Subject: Re: [Spacewalk-list] vmware snapshots

Hello Casey,

Sorry, is not clear your necessity to me. Would you like to do the snapshot of your SW server? or Clients before the patch?

______________
Best
Waldirio
Skype: waldirio
Site: www.waldirio.com.br<http://www.waldirio.com.br>
LinkedIn: https://www.linkedin.com/in/waldirio


On Mon, Nov 26, 2018 at 11:16 AM Yakin, Francis <***@windriver.com<mailto:***@windriver.com>> wrote:
Yes, you can. That what I am using now instead of create a snapshot from spacewalk.

Francis

From: spacewalk-list-***@redhat.com<mailto:spacewalk-list-***@redhat.com> [mailto:spacewalk-list-***@redhat.com<mailto:spacewalk-list-***@redhat.com>] On Behalf Of Casey Gadd
Sent: Saturday, November 24, 2018 9:26 AM
To: spacewalk-***@redhat.com<mailto:spacewalk-***@redhat.com>
Subject: [Spacewalk-list] vmware snapshots

Is there any way to create snapshots before the patch process? We are using VMware.
--
Casey H Gadd, M.S.
Information Systems Technician
Office: (509) 422-8495
Cell: (509) 560-0668

Okanogan County Public Utility District No. 1
1331 Second Ave. N.
Okanogan, WA 98840

_______________________________________________
Spacewalk-list mailing list
Spacewalk-***@redhat.com<mailto:Spacewalk-***@redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list
Casey Gadd
2018-11-28 16:07:47 UTC
Permalink
Francis, how are you doing it?

--
Casey H Gadd, M.S.
Information Systems Technician
Office: (509) 422-8495
Cell: (509) 560-0668

Okanogan County Public Utility District No. 1
1331 Second Ave. N.
Okanogan, WA 98840

From: spacewalk-list-***@redhat.com <spacewalk-list-***@redhat.com> On Behalf Of Yakin, Francis
Sent: Monday, November 26, 2018 11:16 AM
To: spacewalk-***@redhat.com
Subject: Re: [Spacewalk-list] vmware snapshots

Yes, you can. That what I am using now instead of create a snapshot from spacewalk.

Francis

From: spacewalk-list-***@redhat.com<mailto:spacewalk-list-***@redhat.com> [mailto:spacewalk-list-***@redhat.com] On Behalf Of Casey Gadd
Sent: Saturday, November 24, 2018 9:26 AM
To: spacewalk-***@redhat.com<mailto:spacewalk-***@redhat.com>
Subject: [Spacewalk-list] vmware snapshots

Is there any way to create snapshots before the patch process? We are using VMware.

--
Casey H Gadd, M.S.
Information Systems Technician
Office: (509) 422-8495
Cell: (509) 560-0668

Okanogan County Public Utility District No. 1
1331 Second Ave. N.
Okanogan, WA 98840
Robert Paschedag
2018-11-28 16:41:59 UTC
Permalink
Post by Casey Gadd
Francis, how are you doing it?
We are patching our servers with a script, that uses the spacewalk API, to schedule the errata installation on the clients.

You could just extend such a script to connect to your vcenter and snapshot the VM, before you actually run the errata installation.

Robert
Post by Casey Gadd
--
Casey H Gadd, M.S.
Information Systems Technician
Office: (509) 422-8495
Cell: (509) 560-0668
Okanogan County Public Utility District No. 1
1331 Second Ave. N.
Okanogan, WA 98840
Sent: Monday, November 26, 2018 11:16 AM
Subject: Re: [Spacewalk-list] vmware snapshots
Yes, you can. That what I am using now instead of create a snapshot from spacewalk.
Francis
Sent: Saturday, November 24, 2018 9:26 AM
Subject: [Spacewalk-list] vmware snapshots
Is there any way to create snapshots before the patch process? We are using VMware.
--
Casey H Gadd, M.S.
Information Systems Technician
Office: (509) 422-8495
Cell: (509) 560-0668
Okanogan County Public Utility District No. 1
1331 Second Ave. N.
Okanogan, WA 98840
--
sent from my mobile device
Yakin, Francis
2018-11-28 18:54:56 UTC
Permalink
What we do is we just go to Vcenter and do it manually to take snap shot of the VM before we patch it.

But VMware(Vcenter) has command line to do multiple VMs with PowerCLI

https://my.vmware.com/web/vmware/details?downloadGroup=PCLI650R1&productId=614

Francis


-----Original Message-----
From: spacewalk-list-***@redhat.com [mailto:spacewalk-list-***@redhat.com] On Behalf Of Robert Paschedag
Sent: Wednesday, November 28, 2018 8:42 AM
To: spacewalk-***@redhat.com; Casey Gadd; spacewalk-***@redhat.com
Subject: Re: [Spacewalk-list] vmware snapshots
Post by Casey Gadd
Francis, how are you doing it?
We are patching our servers with a script, that uses the spacewalk API, to schedule the errata installation on the clients.

You could just extend such a script to connect to your vcenter and snapshot the VM, before you actually run the errata installation.

Robert
Post by Casey Gadd
--
Casey H Gadd, M.S.
Information Systems Technician
Office: (509) 422-8495
Cell: (509) 560-0668
Okanogan County Public Utility District No. 1
1331 Second Ave. N.
Okanogan, WA 98840
Sent: Monday, November 26, 2018 11:16 AM
Subject: Re: [Spacewalk-list] vmware snapshots
Yes, you can. That what I am using now instead of create a snapshot from spacewalk.
Francis
Sent: Saturday, November 24, 2018 9:26 AM
Subject: [Spacewalk-list] vmware snapshots
Is there any way to create snapshots before the patch process? We are using VMware.
--
Casey H Gadd, M.S.
Information Systems Technician
Office: (509) 422-8495
Cell: (509) 560-0668
Okanogan County Public Utility District No. 1
1331 Second Ave. N.
Okanogan, WA 98840
--
sent from my mobile device
Loading...