[ovirt-users] Re: ovirt-engine-appliance ova

2019-07-14 Thread Jingjie Jiang


On 7/13/2019 6:28 AM, Strahil Nikolov wrote:

I still don't get why you need the OVA .
Are you trying to extract and put it into another virtualization. If 
this is your intention - better install it as if it was a standalone 
engine.


Yes, I am trying to build ova with different OS.

What do you mean install it as standalone engine?

install VM first then install as ovirt engine?


Thanks,

Jingjie




Best Regards,
Strahil Nikolov.

В петък, 12 юли 2019 г., 21:48:35 ч. Гринуич+3, Jingjie Jiang 
 написа:



Hi Strahil,

Thanks for your reply.

Can you share the procedure of creating ovirt-engine-appliance ova?


Thanks,

Jingjie


On 7/12/19 12:52 AM, Strahil wrote:

Based on my experience - the OVA contains the xml and the actual disk 
of the hosted engine.
Then the deployment starts locally the VM and populates the necessary 
data in it
Once it's over , the deployment shuts down and copies the disk of that 
local VM, undefines it and then ovirt's ha agents are being configured 
- so they can mount the shared storage and power up the VM (special 
tar /OVMF/ file on shared storage has the agent  configuration file).


So , in the ova there should be a template VM + the xml config (cpus, 
ram, devices, etc) .

I would be surprised if there is something else in it.

Best Regards,
Strahil Nikolov

On Jul 11, 2019 23:39, Jingjie Jiang  
 wrote:


Hi Strahil,

Yes, you are right.

After install ovirt-engine-appliance rpm, the ova file will be
save at

/usr/share/ovirt-engine-appliance/ovirt-engine-appliance-4.3-20190610.1.el7.ova

I was trying to understand what the ova file included.

I thought it only has the CentOS7.6.

I observed that ovirt-engine was installed during "host-engine
--deploy"

Is ovirt-engine-appliance-4.3-20190610.1.el7.ova only used for
deploy host-engine?

Is there a document about how to generate?


Thanks,

Jingjie


On 7/11/19 4:20 PM, Strahil Nikolov wrote:

If I'm not wrong, this rpm is being downloaded to one of the hosts
during self-hosted engine's deployment.
Why would you try to import a second self-hosted engine ?

Best Regards,
Strahil Nikolov


В четвъртък, 11 юли 2019 г., 22:37:56 ч. Гринуич+3,
  написа:


Hi,
Can someone tell me how to generate  ovirt-engine-appliance ova
file in ovirt-engine-appliance-4.3-20190610.1.el7.x86_64.rpm?
I tried to import ovirt-engine-appliance
ova(ovirt-engine-appliance-4.3-20190610.1.el7.ova) from
ovirt-engine, but I got error as following:
Failed to load VM configuration from OVA file:
/var/tmp/ovirt-engine-appliance-4.2-20190121.1.el7.ova

I guess ovirt-engine-appliance-4.2-20190121.1.el7.ova has more
than CentOS7.6.

Thanks,
Jingjie
___
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/EP2BMVXRXUM6F3WF77OTKZ75NQKMBYC6/;
rel="nofollow" target="_blank"
moz-do-not-send="true">https://lists.ovirt.org/archives/list/users@o


___ 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/OBLCILUNJ2LGZMLVLH2RGMZ5JGNDL43V/
___
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/AAFYBELOAPPBRZNJLESBIBK3T53AP6K2/ 



___
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/TBFPAXABOSW3KBGGVX4D3V2NXYPIHR27/


[ovirt-users] Re: ovirt_disk and ubuntu issues

2019-07-14 Thread Vrgotic, Marko
Dear oVIrt,

Even though I would like to get some insight into what could be reason this is 
no working, I did find a workaround:

Instead of trying to get Ubuntu disk specified with ovirt_disk size,
I used qemu-img resize to increase the disk size before importing it to oVIrt.
This works, but it still going to present the problem if User eventually wants 
to increase for example disk from 40GBto 80GB.

Kindly awaiting your reply.


— — —
Met vriendelijke groet / Kind regards,

Marko Vrgotic
Sr.  System Engineer @ System Administration
m.vrgo...@activevideo.com






From: "Vrgotic, Marko" 
Date: Wednesday, 10 July 2019 at 16:19
To: "users@ovirt.org" 
Subject: ovirt_disk and ubuntu issues

Dear oVirt,

I am downloading the ubuntu cloud image 16.04 and or 18.04:

   - name: "Download base cloud image from server"
 get_url:
   url: "{{ image_url }}"
   checksum: "sha256:{{ image_checksum }}"
   validate_certs: yes
   dest: "/tmp/{{ inventory_hostname_short }}.qcow2"
 delegate_to: localhost

creating a 40GB HDD and attaching image to it:

- name: "Create oVirt disk with base image (with 40Gb allocated)"
  ovirt_disk:
name: "{{ inventory_hostname_short }}"
interface: virtio
size: 40GiB
format: cow
upload_image_path: "/tmp/{{ inventory_hostname_short }}.qcow2"
storage_domain: ovirt_production
wait: true
  delegate_to: localhost

creating VM afterwards:


- name: "Create new Ubuntu VMs from cloud image"
  delegate_to: localhost
  ovirt_vm:
auth: "{{ ovirt_auth }}"
name: "{{ inventory_hostname_short }}"
disks:
- name: "{{ inventory_hostname_short }}"
graphical_console:
protocol: vnc
serial_console: true
usb_support: true
soundcard_enabled: false
operating_system: "{{ operating_system_type }}"
type: server
nics:
- name: nic1
  profile_name: tenant1
  interface: virtio
  nic_on_boot: true
cloud_init:
  host_name: "{{ inventory_hostname }}"
  user_name: ubuntu
  authorized_ssh_keys: "{{ ssh_agent_pubkeys.stdout }}"
state: "running"
cluster: "{{ ovirt_cluster }}"
  when: inventory_hostname in groups['ubuntu-baker']

When VM gets created, I can see in oVIrt VM details disk created is 40GB.
Executing df -h, gives me following:

  root@av3-ubuntu-18-base:/home/ubuntu# df -h
Filesystem  Size  Used Avail Use% Mounted on
udev447M 0  447M   0% /dev
tmpfs92M  696K   92M   1% /run
/dev/vda1   2.0G  1.3G  706M  65% /
tmpfs   460M 0  460M   0% /dev/shm
tmpfs   5.0M 0  5.0M   0% /run/lock
tmpfs   460M 0  460M   0% /sys/fs/cgroup
/dev/vda15  105M  3.6M  101M   4% /boot/efi
tmpfs92M 0   92M   0% /run/user/1000

Initially I thought growpart or resize2fs is not triggered, but then running 
dmesg or fdisk /dev/vda, told me that physical disk size is still only size of 
the downloaded ubuntu cloud image.

Disk /dev/vda: 2.2 GiB, 2361393152 bytes, 4612096 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Is this related to ovirt_disk module, or ubuntu and ovirt_disk, since I do not 
have this behavior with CentOS 7 images?

Can you advise how to proceed, in case I am missing some configuration 
parameter or command to be run?

The following Ubuntu images are used:

ubuntu-16: 
image_url=https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
 image_checksum=fda868058586b129c7fdb6472fe575e911f7c67551a6dc75966f2ec02201bdae
ubuntu-18: 
image_url=https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img
 image_checksum=7d2b90022a169119d7726c0fefa1713acbead7cc36d282c879896fd89c5a6663


Kindly awaiting your reply.


— — —
Met vriendelijke groet / Kind regards,

Marko Vrgotic
Sr.  System Engineer @ System Administration
m.vrgo...@activevideo.com
tel. +31 (0)35 677 4131

___
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/VRLKCMREVCTEWRO4SUCGYA6VETEI726F/


[ovirt-users] hosted engine installation on iscsi multipath/mpath device fails

2019-07-14 Thread Michael Frank
Dear all,

since several days i try to install the hosted engine initially to an iscsi 
multipath device without success.
Some information on the environment:
- Ovirt Version 4.3.3
- using two 10gbe interfaces as single lacp - bond for the ovirtmgmt interface 
- using two 10gbe storage interfaces on each hypervisor for iscsi storage
-- each storage interface is configured without any lacp bonding or 802.1q 
tagging, etc (on the switches the vlan is configured; port based vlan)
-- each storage interface lives in a serarate vlan were also the iscsi target 
is available, the iscsi target has 4x10ge interfaces
-- so; each storage interface is connected to a iscsi target through a 
different vlan

The documentation here is for me unclear:
https://ovirt.org/documentation/self-hosted/chap-Deploying_Self-Hosted_Engine.html
 

>Note: To specify more than one iSCSI target, you must enable multipathing 
>before deploying the self-hosted engine. There is also a Multipath >Helper 
>tool that generates a script to install and configure multipath with different 
>options.

This indicates for me that it should be possbile to install the HE directly on 
the /dev/mapper/mpath device which is availibale when I have prepared the host 
accordingly before installing the HE (log in to multiple iscsi targets, create 
proper multipath,conf, etc) - right ?

I login to the two iscsi targets and get in sum 8 pathes, 4 from each interface 
and iscsi target.
I have then the mpath device on the hypervisor available and i can  mount the 
mpath device and put (test) data on it.
In the cockpit interface the mount can also be activated and is recognized 
correctly.
multipathd -ll and lsblk looks good. Everything seems to be fine.

But when I run the "hosted-engine" --deploy, the last option while running the 
assistant is to enter the iscsi data.
So, basically i just want to define my mpath device - when entering the data 
for one of my iscsi target I can see the 4 pathes of the single target,
and when i choose the path where the "lun" is finally available it fails. I 
think in general this option is not that what i want to have 
here for using the multipath device.

I' m lost - what is the usual way to install the HE on a mutlipath device ?

Do I have to change the configuration of the storage interfaces or the iscsi 
network design?
- Are bond interfaces for these iscsi connections mandatory ?
Did I missed something obvious ?
Can I put in my multipath data into the answerfile somehow to get rid of the 
last step of the assistant ?
Is it not possible in general ?? :
https://bugzilla.redhat.com/show_bug.cgi?id=1193961 


Sorry in advance for the long mail  1!^^

br,
michael___
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/ZDI42MOR2G2LJAO7VNFL3ZYI4U2ICKY4/