[ovirt-users] Re: OVirt Engine Server Died - Steps for Rebuilding the Ovirt Engine System

2019-12-23 Thread Yedidyah Bar David
On Mon, Dec 23, 2019 at 7:08 PM Bob Franzke  wrote:
>
> > Which nightly backups? Do they run engine-backup?
>
> Yes sorry. The backups are the backups created when running the engine-backup 
> script. So I have the files and the DB backed up and off onto different 
> storage. I just grabbed a copy of the entire /etc directory as well just in 
> case there was something needed in there that is not included in the 
> engine-backup solution.
>
> > In either case, assuming this is a production env, I suggest to first test 
> > on a separate env to see how it all looks like.
>
> This is a production environment. My plan is to get a new server ordered and 
> built, removing the old server from the equation (old server is old and needs 
> to be replaced anyway). Then rebuild the Ovirt bits and restore the data from 
> my backups.

I assume, from your first post, that you refer to the host running the
engine, and that this is a standalone engine, not hosted-engine.
Right? Meaning, it's running on bare-metal, not inside a VM managed by
itself.

For testing you can try stuff on an isolated VM somewhere, no need to
wait for your new server to arrive.

>
> I just more needed a quick set up steps to take here. From what I gather I 
> need to basically:
>
> 1. reinstall CentOS
> 2. Reconfigure storage (this server has several ISCSI LUNs its attached to 
> currently. I don’t know if they are required for this or what).

I obviously have no idea what is your storage design and requirements,
but this is largely a local matter, unrelated to the hosts that run
VMs. The engine machine's storage is (normally) not used for that,
only for the engine itself (and its db, etc.).

> 3. Install PostGreSQL (maybe? Or does the ovirt engine script do this for 
> you?)
> 3. Install Ovirt/run ovirt-engine script maybe?

Add relevant repo, by installing relevant ovirt-releast* package (see
the web site), and then 'yum install ovirt-engine' - this should grab
for you postgresql etc.

> 4. Restore DB and data

Yes. Run basically 'engine-backup --mode=restore' and then
'engine-setup'. Please check the backup/restore documentation on the
web site.
If your current engine used only defaults (meaning, engine+dwh+their
DBs all on the engine machine, provisioned by engine-setup), then the
restore command should be something like:

engine-backup --mode=restore --file=your-backup-file --provision-all-databases

Again, please test on a test VM somewhere, and make sure it's isolated
- that it can't reach your hosts and start to manage them (unless
that's what you want, of course).

>
> I am not sure the details of the list outlined above (what to run where, 
> etc.). I am looking for consultants to help me out here as its clear I am a 
> bit behind the curve on this one. So far not much has worked out on that 
> front. Does the above list seem reasonable in terms of needed steps to get 
> this going again?

See above.

For consultants, you might want to check:

https://www.ovirt.org/community/user-stories/users-and-providers.html

And/or post again to the list with a subject line that's more likely
to attract them ("Looking for an oVirt consultant...").

Good luck and best regards,

>
>
> -Original Message-
> From: Yedidyah Bar David (d...@redhat.com) 
> Sent: Sunday, December 22, 2019 1:58 AM
> To: bob.fran...@mdaemon.com
> Cc: users 
> Subject: [ovirt-users] Re: OVirt Engine Server Died - Steps for Rebuilding 
> the Ovirt Engine System
>
> On Fri, Dec 20, 2019 at 8:55 PM  wrote:
> >
> > Full disclosure here.I am not an Ovirt Expert. I am a network Engineer 
> > that has been forced to take over sysadmin duties for a departed co-worker. 
> > I have little experience with Ovirt so apologies up front for anything I 
> > say that comes across as stupid or "RTM" questions. Normally I would do 
> > just that but I am in a bind and am trying to figure this out quickly. We 
> > have an OVirt installation setup that consists of 4 nodes and a server that 
> > hosts the ovirt-engine all running CentOS 7. The server that hosts the 
> > engine has a pair of failing hard drives and I need to replace the hardware 
> > ASAP. Need to outline the steps needed to build a new server to serve as 
> > and replace the ovirt engine server. I have backed up the entire /etc 
> > directory and the backups being done nightly by the engine itself.
>
> Which nightly backups? Do they run engine-backup?
>
> > I also backed up the iscsi info and took a printout of all the disk 
> > arrangement . The disk has gotten so bad at this point that the DB won't 
> > back up any longer. Get fatal:backup failed error when
> >   trying to run the ovirt backup tool. Also the Ovirt management site is 
> > not rendering and I am not sure why.
> >
> > Is there anything else I need to make sure I backup in order to migrate the 
> > engine from one server to another?
>
> Generally speaking, if you used engine-backup for backups, it should be 
> enough - it backs up all it needs from /etc

[ovirt-users] Re: Problems with ovirt-web-ui-1.6.0-1.el7.noarch

2019-12-23 Thread Yedidyah Bar David
On Mon, Dec 23, 2019 at 6:30 PM Matthias Leopold
 wrote:
>
>
>
> Am 23.12.19 um 12:45 schrieb Matthias Leopold:
> >
> >
> > Am 19.12.19 um 19:14 schrieb Matthias Leopold:
> >> Hi,
> >>
> >> after upgrading oVirt from 4.3.5 to 4.3.7 some things in the VM Portal
> >> stopped working for users with "User" role:
> >>
> >> * running guest agent is not recognized ("It looks like no guest agent
> >> is configured on the VM.")
> >> * CD/ISO list is "[Empty]"
> >> for this I found
> >> "- limit CD/ISO list by data center"
> >> in rpm changelog, but this doesn't help me in any way
> >>
> >> Assigning other roles (UserVmRunTimeManager, PowerUserRole) doesn't
> >> change anything.
> >> /var/log/ovirt-engine/ui.log is quiet.
> >> Downgrading to ovirt-web-ui-1.5.3-1.el7.noarch resolves both issues.
> >>
> >> Am I the only one who is experiencing this?
> >>
> >> thx for advice
> >> Matthias
> >>
> >>
> >> ___
> >> Users mailing list -- users@ovirt.org
> >> To unsubscribe send an email to users-le...@ovirt.org
> >> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> >> oVirt Code of Conduct:
> >> https://www.ovirt.org/community/about/community-guidelines/
> >> List Archives:
> >> https://lists.ovirt.org/archives/list/users@ovirt.org/message/IN2YDY7MUMV67HNLRHPLQEUGPBEE3UMJ/
> >>
> >
> > OK, I think I found it in both cases:
> > * the criteria for "DiskDetails" to display has changed in 1.6.0
> > ("diskDetails.length > 0"), since I mostly use cinder disks (which have
> > never been covered in this calculation) I now get this (harmless) error
> > message about "no guest agent is configured"
>
>
> with qemu-guest-agent 3.1 (self compiled) and ovirt-guest-agent 1.0.16
> (from ovirt instead of epel) vms.disk_usage in the database is correctly
> filled even for VMs with Cinder disks and everything "works as designed"
> in the VM portal
> see also https://github.com/oVirt/ovirt-web-ui/pull/1056
> it was a long way to get there... I hope somebody can use this...

Thanks a lot for the investigation and for the report!

Best regards,
-- 
Didi
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/GIRT3JQHJMFTBGYPUSEBHUE6V53RVF2V/


[ovirt-users] Re: ovirt 4.3.7 + Gluster in hyperconverged (production design)

2019-12-23 Thread Jayme
If you can afford it I would definitely do raid. Being able to monitor and
replace disks at the raid level is much easier than brick. With raid I’d do
a gluster arbiter setup so your aren’t losing too much space.

Keep an eye on libgfapi. It’s not default setting due to a few bugs but
I’ve been testing it in my ssd hci cluster and have been seeing up to 5x io
improvement.  Also jumbo frames on those 10Gbps switches.

Someone else will probably chime in re the other questions. I believe the
GUI can only deploy a three sever cluster then you have to add the
remaining hosts afterward.

On Mon, Dec 23, 2019 at 5:56 PM  wrote:

> Hi,
> After playing a bit with oVirt and Gluster in our pre-production
> environment for the last year, we have decided to move forward with a our
> production design using ovirt 4.3.7 + Gluster in a hyperconverged setup.
>
> For this we are looking get answers to a few questions that will help out
> with our design and  eventually lead to our production deployment phase:
>
> Current HW specs (total servers = 18):
> 1.- Server type: DL380 GEN 9
> 2.- Memory: 256GB
> 3.-Disk QTY per hypervisor:
> - 2x600GB SAS (RAID 0) for the OS
> - 9x1.2TB SSD (RAID[0, 6..]..? ) for GLUSTER.
> 4.-Network:
> - Bond1: 2x10Gbps
> - Bond2: 2x10Gbps (for migration and gluster)
>
> Our plan is to build 2x9 node clusters, however the following questions
> come up:
>
> 1.-Should we build 2 separate environments each with its own engine? or
> should we do 1 engine that will manage both clusters?
> 2.-What would be the best gluster volume layout for #1 above with regards
> to RAID configuration:
> - JBOD or RAID6 or…?.
> - what is the benefit or downside of using JBOD vs RAID 6 for this
> particular scenario?
> 3.-Would you recommend Ansible-based deployment (if supported)? If yes
> where would I find the documentation for it? or should we just deploy using
> the UI?.
> - I have reviewed the following and in Chapter 5 it only mentions Web UI
> https://access.redhat.com/documentation/en-us/red_hat_hyperconverged_infrastructure_for_virtualization/1.6/html-single/deploying_red_hat_hyperconverged_infrastructure_for_virtualization/index#deployment_workflow
> - Also looked at
> https://github.com/gluster/gluster-ansible/tree/master/playbooks/hc-ansible-deployment
> but could not get it to work properly.
>
> 4.-what is the recommended max server qty in a hyperconverged setup with
> gluster, 12, 15, 18...?
>
> Thanks,
>
> Adrian
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/TZEIOQW5KXIF47SZDZPMLUBWTP5QUPMZ/
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/TXMSE62M2FWEQCSJXWOXS67K7CKNDZIA/


[ovirt-users] ovirt 4.3.7 + Gluster in hyperconverged (production design)

2019-12-23 Thread adrianquintero
Hi,
After playing a bit with oVirt and Gluster in our pre-production environment 
for the last year, we have decided to move forward with a our production design 
using ovirt 4.3.7 + Gluster in a hyperconverged setup.

For this we are looking get answers to a few questions that will help out with 
our design and  eventually lead to our production deployment phase:

Current HW specs (total servers = 18):
1.- Server type: DL380 GEN 9
2.- Memory: 256GB
3.-Disk QTY per hypervisor:
- 2x600GB SAS (RAID 0) for the OS
- 9x1.2TB SSD (RAID[0, 6..]..? ) for GLUSTER.
4.-Network:
- Bond1: 2x10Gbps 
- Bond2: 2x10Gbps (for migration and gluster)

Our plan is to build 2x9 node clusters, however the following questions come up:

1.-Should we build 2 separate environments each with its own engine? or should 
we do 1 engine that will manage both clusters?
2.-What would be the best gluster volume layout for #1 above with regards to 
RAID configuration:
- JBOD or RAID6 or…?.
- what is the benefit or downside of using JBOD vs RAID 6 for this particular 
scenario?
3.-Would you recommend Ansible-based deployment (if supported)? If yes where 
would I find the documentation for it? or should we just deploy using the UI?.
- I have reviewed the following and in Chapter 5 it only mentions Web UI 
https://access.redhat.com/documentation/en-us/red_hat_hyperconverged_infrastructure_for_virtualization/1.6/html-single/deploying_red_hat_hyperconverged_infrastructure_for_virtualization/index#deployment_workflow
- Also looked at 
https://github.com/gluster/gluster-ansible/tree/master/playbooks/hc-ansible-deployment
 but could not get it to work properly.

4.-what is the recommended max server qty in a hyperconverged setup with 
gluster, 12, 15, 18...?

Thanks,

Adrian
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/TZEIOQW5KXIF47SZDZPMLUBWTP5QUPMZ/


[ovirt-users] Re: Strategy to Mange Ovirt VMs Created from Templates

2019-12-23 Thread Strahil
Sealing the VM is not something specific to oVirt, and is also valid for KVM.
Actually sealing the VM is to run virt-sysprep against the VM/disk.

You can check http://libguestfs.org/virt-sysprep.1.html and especially the 
--list-operations which can help you understand what ia being cleaned up.

So you can:
1. Update the VM
2. Install and enable cloudinit service
3. Maybe try to create your ansible user and allow ssh keys (Using ansible over 
root is not good and is a bad practice)
4. Power off and seal the machine as a template (details at 
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Sealing_Virtual_Machines_in_Preparation_for_Deployment_as_Templates.html
 )
5. Create VM from the template and power it up manually.
6. Verify that the new VM matches your needs and remove.

About cloud  init - you should know that is used  extensively in OpenStack and 
VmWare has it's own solution similar to CloudInit.

Some examples can be found at: 
https://cloudinit.readthedocs.io/en/latest/topics/examples.html
So you can change passwords, configure network, create your ansible user with 
necessary permissions and way more.


Best Regards,
Strahil NikolovOn Dec 23, 2019 18:46, jeremy_tourvi...@hotmail.com wrote:
>
> Thank you for your reply Luca, 
> In general your work flow is helpful and makes sense to me.  
>
> I meant to say above- "As part of the template creation process ***the Ovirt 
> docs*** say to seal the VM".  
>
> So I think I understand that you need to use both processes (seal template + 
> cloudinit) to get everything to work as desired.  I'd still appreciate any 
> more specifics about what sealing a VM does.
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives: 
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/BRLNWOQB6FM4BUOW5JDG2RGKDSLWCFOV/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/CQ6SB7WHZK4XRNLQ4TA3A63QADY5FJEX/


[ovirt-users] Re: OVirt Engine Server Died - Steps for Rebuilding the Ovirt Engine System

2019-12-23 Thread Bob Franzke
> Which nightly backups? Do they run engine-backup?

Yes sorry. The backups are the backups created when running the engine-backup 
script. So I have the files and the DB backed up and off onto different 
storage. I just grabbed a copy of the entire /etc directory as well just in 
case there was something needed in there that is not included in the 
engine-backup solution.

> In either case, assuming this is a production env, I suggest to first test on 
> a separate env to see how it all looks like.

This is a production environment. My plan is to get a new server ordered and 
built, removing the old server from the equation (old server is old and needs 
to be replaced anyway). Then rebuild the Ovirt bits and restore the data from 
my backups.

I just more needed a quick set up steps to take here. From what I gather I need 
to basically:

1. reinstall CentOS
2. Reconfigure storage (this server has several ISCSI LUNs its attached to 
currently. I don’t know if they are required for this or what).
3. Install PostGreSQL (maybe? Or does the ovirt engine script do this for you?)
3. Install Ovirt/run ovirt-engine script maybe?
4. Restore DB and data

I am not sure the details of the list outlined above (what to run where, etc.). 
I am looking for consultants to help me out here as its clear I am a bit behind 
the curve on this one. So far not much has worked out on that front. Does the 
above list seem reasonable in terms of needed steps to get this going again?


-Original Message-
From: Yedidyah Bar David (d...@redhat.com)  
Sent: Sunday, December 22, 2019 1:58 AM
To: bob.fran...@mdaemon.com
Cc: users 
Subject: [ovirt-users] Re: OVirt Engine Server Died - Steps for Rebuilding the 
Ovirt Engine System

On Fri, Dec 20, 2019 at 8:55 PM  wrote:
>
> Full disclosure here.I am not an Ovirt Expert. I am a network Engineer 
> that has been forced to take over sysadmin duties for a departed co-worker. I 
> have little experience with Ovirt so apologies up front for anything I say 
> that comes across as stupid or "RTM" questions. Normally I would do just that 
> but I am in a bind and am trying to figure this out quickly. We have an OVirt 
> installation setup that consists of 4 nodes and a server that hosts the 
> ovirt-engine all running CentOS 7. The server that hosts the engine has a 
> pair of failing hard drives and I need to replace the hardware ASAP. Need to 
> outline the steps needed to build a new server to serve as and replace the 
> ovirt engine server. I have backed up the entire /etc directory and the 
> backups being done nightly by the engine itself.

Which nightly backups? Do they run engine-backup?

> I also backed up the iscsi info and took a printout of all the disk 
> arrangement . The disk has gotten so bad at this point that the DB won't back 
> up any longer. Get fatal:backup failed error when
>   trying to run the ovirt backup tool. Also the Ovirt management site is not 
> rendering and I am not sure why.
>
> Is there anything else I need to make sure I backup in order to migrate the 
> engine from one server to another?

Generally speaking, if you used engine-backup for backups, it should be enough 
- it backs up all it needs from /etc.

If you didn't use that, /etc won't be enough. You also need a database backup.

If you do not have a backup of the database, you'll need to create a new engine 
from scratch. You can then import the existing storage domains and add the 
hosts. This will require downtime, and you'll loose some stuff, so if you do 
have an engine-backup backup, better use that.

In either case, assuming this is a production env, I suggest to first test on a 
separate env to see how it all looks like.

> Also, until I can get the engine running again, is there any tool available 
> to manage the VMs on the hosts themselves. The VMs on the hosts are running 
> but need a way to manage them if needed in case something happens while the 
> engine is being repaired.

Some management is possible via cockpit. It's much less than what the engine 
allows.

If you search the list archives, you can find suggestions by people to directly 
use libvirt/virsh after poking a bit inside your storage domain. I'd not 
recommend doing that, unless you know very well what you are doing and have no 
other solution (e.g. if storage is corrupted enough so that import to a new 
engine fails).

> Any info on this as well as what to backup and the steps to move the engine 
> from one server to another would be much much appreciated.

You can search the site for backup, restore, and import storage domain, and 
should find the relevant pages. Please note that the pages under /develop are 
written during development and are usually not updated after a feature is 
complete. The official documentation is under /documentation. That, in turn, is 
often outdated as well :-(.
You can use RHV docs in addition. These are more up-to-date and should be 99% 
applicable to oVirt.

> Sorry I know this a real 

[ovirt-users] Re: Strategy to Mange Ovirt VMs Created from Templates

2019-12-23 Thread Jan Zmeskal
Hi Jeremy,

I found an old blog post where the author seals the VM manually, see here:
https://www.linuxtechi.com/create-vm-template-ovirt-environment/
Please, *do not follow this guide* since it seems to be a bit outdated.
Nonetheless, it might give you a more specific idea about what sealing the
template (which is done for you by oVirt) actually entails.

Jan

On Mon, Dec 23, 2019 at 5:48 PM  wrote:

> Thank you for your reply Luca,
> In general your work flow is helpful and makes sense to me.
>
> I meant to say above- "As part of the template creation process ***the
> Ovirt docs*** say to seal the VM".
>
> So I think I understand that you need to use both processes (seal template
> + cloudinit) to get everything to work as desired.  I'd still appreciate
> any more specifics about what sealing a VM does.
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/BRLNWOQB6FM4BUOW5JDG2RGKDSLWCFOV/
>


-- 

Jan Zmeskal

Quality Engineer, RHV Core System

Red Hat 

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/IIRJ3VIOVKUCYY6RRJAYVTMU63M7SIOA/


[ovirt-users] Re: Strategy to Mange Ovirt VMs Created from Templates

2019-12-23 Thread Jan Zmeskal
Hi Jeremy,

Can someone tell me what sealing does to a Linux VM?
>

In short, "sealing is the process of removing all system-specific details
from a virtual machine before creating a template based on that virtual
machine". In entails actions such as removing SSH host keys, removing MAC
address information from the system, changing the hostname to a generic
etc. You could do all this manually, but as far as Linux VMs are concerned,
you don't have to. oVirt can do this for you when you create a teamplate.

So, if I want to manage a VM created from a template would this general
> process work?-
>
> Seal the VM
> Install CloudInit and keys, accounts, etc
> Shut off VM and create template from it.
>
> Create new VM using Ansbile & CloudInit
> CloudInit would have just enough info so that you could manage the VM with
> Ansible.
>

I think the better order would be:

   - Upload a disk
   

   that you want to use as a basis for your template (RHEL, CentOS, whatever
   you use)
   - Create a VM with that disk attached
   - Start the VM
   - Do all the necessary configuration that you want to be part of your
   future template. That means for example enabling repositories, updating
   packages etc. If you want to start your future VMs using cloud-init, you
   need to install (and enable it!) here.
   - Stop the VM
   - Create template out of this VM (Don't forget to check the *Seal
   Template* option during template creation)
   - Create a new VM out of that template (using Ansible if you wish so)

Sample Ansible playbook creating a single VM would look like this:

---
- name: Create VM using Ansible role
  hosts: localhost
  connection: local
  gather_facts: false

  vars:
engine_fqdn: my_enging.my_domain.com
engine_user: admin@internal
engine_password: mypass

my_vm_profile:
  template: cloud_init_enabled_template
  ssh_key: "your_public_ssh_key"

vms:
  - name: test_vm
cluster: my_cluster
profile: "{{ my_vm_profile }}"
state: running
cloud_init:
  host_name: sandbox
  root_password: sandbox
  custom_script: |
packages:
  - vim-enhanced
  - screen

  roles:
- ovirt.vm-infra

All the variables that may be provided to ovirt.vm-infra role can be found
here .
Pay special attention to the *cloud_init *key in the test_vm dictionary.
This dictionary is used to control cloud-init setup on VM. It natively
supports many of the cloud-init parameters and you can find them all in the
previous link. Should this not be sufficient for you, *cloud_init*
dictionary may also contain *custom_script *key. To that key, you simply
provide a string which holds raw cloud-init script. Examples of raw
cloud-init scripts can be found in cloud-init's doc page
.

Hope this was helpful. Best regards!

Jan

On Mon, Dec 23, 2019 at 4:30 PM Luca 'remix_tj' Lorenzetto <
lorenzetto.l...@gmail.com> wrote:

> Hello Jeremy,
>
> we did this kind of workflow:
>
> - create a standard base image, with all the required updates you
> want. We usually started from the previous template of the same RHEL
> release, but you can start from scratch every time if you want.
> - Install cloud-init that starts at boot and then, after the first
> successful execution, disables itself.
> - a ssh key for ansible to allow login as root without password. This
> key will be then removed after deployment is completed.
> - create this new template as new version of the existing RHEL
> template (RHEL 7 as example)
>
> At deploy time with ansible:
> - deploy a new vm starting from the latest template of RHEL7. Use
> run_once cloudinit details for setting ip address. The vm has to be
> connected to the right virtual network.
> - wait_for vm to be reachable via network
> - proceed with ansible to configure/install the remaining parts
> (authentication, monitoring agents, backup utilities).
>
> Luca
>
> On Mon, Dec 23, 2019 at 4:20 PM  wrote:
> >
> > I want to be able to manage VMs using Ansible.  As part of the template
> creation process it says to seal the VM.  Can someone tell me what sealing
> does to a Linux VM?  I understand it removes some of things that make the
> VM unique but no real specifics.
> >
> > So, if I want to manage a VM created from a template would this general
> process work?-
> >
> > Seal the VM
> > Install CloudInit and keys, accounts, etc
> > Shut off VM and create template from it.
> >
> > Create new VM using Ansbile & CloudInit
> > CloudInit would have just enough info so that you could manage the VM
> with Ansible.
> >
> > Would that work?
> >
> > I am just starting to explore what CloudInit can do and what it is.  I
> am brand new to it.  I didn't find enough info o

[ovirt-users] Re: Strategy to Mange Ovirt VMs Created from Templates

2019-12-23 Thread jeremy_tourville
Thank you for your reply Luca, 
In general your work flow is helpful and makes sense to me.  

I meant to say above- "As part of the template creation process ***the Ovirt 
docs*** say to seal the VM".  

So I think I understand that you need to use both processes (seal template + 
cloudinit) to get everything to work as desired.  I'd still appreciate any more 
specifics about what sealing a VM does.
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/BRLNWOQB6FM4BUOW5JDG2RGKDSLWCFOV/


[ovirt-users] Re: Problems with ovirt-web-ui-1.6.0-1.el7.noarch

2019-12-23 Thread Matthias Leopold



Am 23.12.19 um 12:45 schrieb Matthias Leopold:



Am 19.12.19 um 19:14 schrieb Matthias Leopold:

Hi,

after upgrading oVirt from 4.3.5 to 4.3.7 some things in the VM Portal 
stopped working for users with "User" role:


* running guest agent is not recognized ("It looks like no guest agent 
is configured on the VM.")

* CD/ISO list is "[Empty]"
for this I found
"- limit CD/ISO list by data center"
in rpm changelog, but this doesn't help me in any way

Assigning other roles (UserVmRunTimeManager, PowerUserRole) doesn't 
change anything.

/var/log/ovirt-engine/ui.log is quiet.
Downgrading to ovirt-web-ui-1.5.3-1.el7.noarch resolves both issues.

Am I the only one who is experiencing this?

thx for advice
Matthias


___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/IN2YDY7MUMV67HNLRHPLQEUGPBEE3UMJ/ 



OK, I think I found it in both cases:
* the criteria for "DiskDetails" to display has changed in 1.6.0 
("diskDetails.length > 0"), since I mostly use cinder disks (which have 
never been covered in this calculation) I now get this (harmless) error 
message about "no guest agent is configured"



with qemu-guest-agent 3.1 (self compiled) and ovirt-guest-agent 1.0.16 
(from ovirt instead of epel) vms.disk_usage in the database is correctly 
filled even for VMs with Cinder disks and everything "works as designed" 
in the VM portal

see also https://github.com/oVirt/ovirt-web-ui/pull/1056
it was a long way to get there... I hope somebody can use this...

Matthias
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/PYVY3R5TAK73LTIULDHLILGRLGIKGWZH/


[ovirt-users] Re: Strategy to Mange Ovirt VMs Created from Templates

2019-12-23 Thread Luca 'remix_tj' Lorenzetto
Hello Jeremy,

we did this kind of workflow:

- create a standard base image, with all the required updates you
want. We usually started from the previous template of the same RHEL
release, but you can start from scratch every time if you want.
- Install cloud-init that starts at boot and then, after the first
successful execution, disables itself.
- a ssh key for ansible to allow login as root without password. This
key will be then removed after deployment is completed.
- create this new template as new version of the existing RHEL
template (RHEL 7 as example)

At deploy time with ansible:
- deploy a new vm starting from the latest template of RHEL7. Use
run_once cloudinit details for setting ip address. The vm has to be
connected to the right virtual network.
- wait_for vm to be reachable via network
- proceed with ansible to configure/install the remaining parts
(authentication, monitoring agents, backup utilities).

Luca

On Mon, Dec 23, 2019 at 4:20 PM  wrote:
>
> I want to be able to manage VMs using Ansible.  As part of the template 
> creation process it says to seal the VM.  Can someone tell me what sealing 
> does to a Linux VM?  I understand it removes some of things that make the VM 
> unique but no real specifics.
>
> So, if I want to manage a VM created from a template would this general 
> process work?-
>
> Seal the VM
> Install CloudInit and keys, accounts, etc
> Shut off VM and create template from it.
>
> Create new VM using Ansbile & CloudInit
> CloudInit would have just enough info so that you could manage the VM with 
> Ansible.
>
> Would that work?
>
> I am just starting to explore what CloudInit can do and what it is.  I am 
> brand new to it.  I didn't find enough info on template sealing to help me 
> devise a full cycle management strategy.  Perhaps there are other/easier 
> methods?  Thanks for your advice and input.
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives: 
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/PJ6OOPUT3KJEME6PEZJIX4FN4YA7BB6K/



-- 
"E' assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)

Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , 
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/VSPOODV5O3PPTAKVRNMTAKDL435XCDHZ/


[ovirt-users] Strategy to Mange Ovirt VMs Created from Templates

2019-12-23 Thread jeremy_tourville
I want to be able to manage VMs using Ansible.  As part of the template 
creation process it says to seal the VM.  Can someone tell me what sealing does 
to a Linux VM?  I understand it removes some of things that make the VM unique 
but no real specifics.  

So, if I want to manage a VM created from a template would this general process 
work?-

Seal the VM
Install CloudInit and keys, accounts, etc
Shut off VM and create template from it.

Create new VM using Ansbile & CloudInit 
CloudInit would have just enough info so that you could manage the VM with 
Ansible.

Would that work?

I am just starting to explore what CloudInit can do and what it is.  I am brand 
new to it.  I didn't find enough info on template sealing to help me devise a 
full cycle management strategy.  Perhaps there are other/easier methods?  
Thanks for your advice and input.
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/PJ6OOPUT3KJEME6PEZJIX4FN4YA7BB6K/


[ovirt-users] Re: Problems with ovirt-web-ui-1.6.0-1.el7.noarch

2019-12-23 Thread Matthias Leopold



Am 19.12.19 um 19:14 schrieb Matthias Leopold:

Hi,

after upgrading oVirt from 4.3.5 to 4.3.7 some things in the VM Portal 
stopped working for users with "User" role:


* running guest agent is not recognized ("It looks like no guest agent 
is configured on the VM.")

* CD/ISO list is "[Empty]"
for this I found
"- limit CD/ISO list by data center"
in rpm changelog, but this doesn't help me in any way

Assigning other roles (UserVmRunTimeManager, PowerUserRole) doesn't 
change anything.

/var/log/ovirt-engine/ui.log is quiet.
Downgrading to ovirt-web-ui-1.5.3-1.el7.noarch resolves both issues.

Am I the only one who is experiencing this?

thx for advice
Matthias


___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/IN2YDY7MUMV67HNLRHPLQEUGPBEE3UMJ/ 



OK, I think I found it in both cases:
* the criteria for "DiskDetails" to display has changed in 1.6.0 
("diskDetails.length > 0"), since I mostly use cinder disks (which have 
never been covered in this calculation) I now get this (harmless) error 
message about "no guest agent is configured"
* you seemingly need DiskOperator permissions for the ISO domain in 
ovirt-web-ui-1.6.0, that wasn't the case with 1.5.3


Matthias

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/TAFQW2CLJ2PEHD4YBVJDWKBC2NBR6QFF/


[ovirt-users] Re: VM Import Fails

2019-12-23 Thread Benny Zlotnik
Please attach engine and vdsm logs and specify the versions

On Mon, Dec 23, 2019 at 10:08 AM Vijay Sachdeva
 wrote:
>
> Hi All,
>
>
>
> I am trying to import a VM from export domain, but import fails.
>
>
>
> Setup:
>
>
>
> Source DC has a NFS shared storage with two Hosts
> Destination DC has a local storage configured using LVM.
>
>
>
> Note: Used common export domain to export the VM.
>
>
>
>
>
> Anyone, please help me on this case to understand why it’s failing.
>
>
>
> Thanks
>
> Vijay Sachdeva
>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/A4NTGBIKTYGJVGNAYOFYRBTXFMV3GRQU/


[ovirt-users] VM Import Fails

2019-12-23 Thread Vijay Sachdeva
Hi All,

 

I am trying to import a VM from export domain, but import fails.

 

Setup:

 
Source DC has a NFS shared storage with two Hosts
Destination DC has a local storage configured using LVM.
 

Note: Used common export domain to export the VM.

 

 

Anyone, please help me on this case to understand why it’s failing.

 

Thanks

Vijay Sachdeva

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: