Re: [rdo-users] Error building overcloud images

2021-06-02 Thread John Fulton
On Wed, Jun 2, 2021 at 11:05 AM wodel youchi  wrote:
>
> Hello,
>
> I gave up on building the images, I downloaded them, then I uploaded them 
> into openstack, the operation seemed to work but "openstack image list" does 
> not return anything.
>
> [stack@underooo ~]$ ll images/
> total 4454988
> -rw-r--r--. 1 stack stack  402231551 31 May 20:12 
> ironic-python-agent.initramfs
> -rwxr-xr-x. 1 stack stack   10030216 31 May 20:12 ironic-python-agent.kernel
> -rw-r--r--. 1 stack stack   69477395 20 May 01:53 overcloud-full.initrd
> -rw-r--r--. 1 stack stack 1218966528 20 May 01:57 overcloud-full.qcow2
> -rw-r--r--. 1 root  root  4875288576 31 May 23:24 overcloud-full.raw
> -rwxr-xr-x. 1 stack stack   10030216 20 May 01:53 overcloud-full.vmlinuz
>
> (undercloud) [stack@underooo ~]$ openstack image upload --image-path 
> /home/stack/images/
> (undercloud) [stack@underooo ~]$ openstack imagelist
> public endpoint for image service not found 
> <--- ??

Wallaby does not use glance on the undercloud by default. Try this:

  cd /home/stack/images/
  openstack overcloud image upload --update-existing

More details here:

  
https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/deployment/upload_single_image.html

  John

>
>
> despite
> (undercloud) [stack@underooo ~]$ ll /var/lib/ironic/images/
> total 4074704
> -rw-r--r--. 1 42422 42422   69477395 31 May 23:24 overcloud-full.initrd
> -rw-r--r--. 1 42422 42422 4875288576 31 May 23:25 overcloud-full.raw
> -rwxr-xr-x. 1 42422 42422   10030216 31 May 23:24 overcloud-full.vmlinuz
>
> Is this correct.
>
> Regards.
>
> Le mer. 26 mai 2021 19:35, wodel youchi  a écrit :
>>
>> Hi,
>>
>> I am using Wallaby.
>>
>> Using this documentation 
>> (https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/deployment/install_overcloud.html#deploy-the-overcloud),
>>  I am trying to build the overcloud images like this :
>>
>> export 
>> OS_YAML="/usr/share/openstack-tripleo-common/image-yaml/overcloud-images-centos8.yaml"
>> export DIB_YUM_REPO_CONF="/etc/yum.repos.d/delorean* 
>> /etc/yum.repos.d/tripleo-centos-*"
>> export STABLE_RELEASE="wallaby"
>> openstack overcloud image build --config-file 
>> /usr/share/openstack-tripleo-common/image-yaml/overcloud-images-python3.yaml 
>> --config-file $OS_YAML
>>
>>
>> But I got these errors at the end :
>>>
>>> ...
>>> 2021-05-26 18:14:45.815 | ERROR:root:overcloud-base has no valid mapping 
>>> for package openssl-perl
>>> 2021-05-26 18:14:46.543 | INFO:root:Mapping for overcloud-base : lvm2
>>> 2021-05-26 18:14:46.554 | ERROR:root:overcloud-base has no valid mapping 
>>> for package lvm2
>>> 2021-05-26 18:14:47.241 | INFO:root:Mapping for overcloud-base : sysstat
>>> 2021-05-26 18:14:47.933 | INFO:root:Mapping for overcloud-ceph-storage : 
>>> chrony_package
>>> 2021-05-26 18:14:48.645 | Running install-packages install.
>>> 
>>> 
>>> 2021-05-26 18:15:02.588 | Error:
>>> 2021-05-26 18:15:02.589 |  Problem: conflicting requests
>>> 2021-05-26 18:15:02.589 |   - nothing provides pacemaker-libs(x86-64) = 
>>> 2.0.5-9.el8 needed by pacemaker-remote-2.0.5-9.el8.x86_64
>>> 2021-05-26 18:15:02.592 | (You could try using --skip-broken to work around 
>>> the problem or --nobest to use more than the best choice package)
>>> 2021-05-26 18:15:11.699 | INFO diskimage_builder.block_device.blockdevice 
>>> [-] State already cleaned - no way to do anything here
>>> Exception occured while running the command
>>> Traceback (most recent call last):
>>>  File "/usr/lib/python3.6/site-packages/tripleoclient/command.py", line 34, 
>>> in run
>>>super(Command, self).run(parsed_args)
>>>  File "/usr/lib/python3.6/site-packages/osc_lib/command/command.py", line 
>>> 39, in run
>>>return super(Command, self).run(parsed_args)
>>>  File "/usr/lib/python3.6/site-packages/cliff/command.py", line 185, in run
>>>return_code = self.take_action(parsed_args) or 0
>>>  File 
>>> "/usr/lib/python3.6/site-packages/tripleoclient/v1/overcloud_image.py", 
>>> line 120, in take_action
>>>manager.build()
>>>  File "/usr/lib/python3.6/site-packages/tripleo_common/image/build.py", 
>>> line 85, in build
>>>elements, options, packages, extra_options)
>>>  File 
>>> "/usr/lib/python3.6/site-packages/tripleo_common/image/image_builder.py", 
>>> line 140, in build_image
>>>raise subprocess.CalledProcessError(process.returncode, cmd)
>>> subprocess.CalledProcessError: Command '['disk-image-create', '-a', 
>>> 'amd64', '-o', './overcloud-full', '-t', 'qcow2', '-p', 
>>> 'python3-psutil,python3-debtcollector,sos,device-mapper-multipat
>>> h,openstack-heat-agents,os-net-config,jq,python3-dbus', '--min-tmpfs=7', 
>>> '--mkfs-options', '-s size=4096', 'centos', 'baremetal', 'openvswitch', 
>>> 'overcloud-agent', 'overcloud-base', 'overc
>>> loud-controller', 'overcloud-compute', 'overcloud-ceph-storage', 
>>> 'puppet-modules', 'stable-interface-names', 'grub2', 

Re: [rdo-users] Error building overcloud images

2021-06-02 Thread wodel youchi
Hello,

I gave up on building the images, I downloaded them, then I uploaded them
into openstack, the operation seemed to work but "openstack image list"
does not return anything.

[stack@underooo ~]$ ll images/
total 4454988
-rw-r--r--. 1 stack stack  402231551 31 May 20:12
ironic-python-agent.initramfs
-rwxr-xr-x. 1 stack stack   10030216 31 May 20:12 ironic-python-agent.kernel
-rw-r--r--. 1 stack stack   69477395 20 May 01:53 overcloud-full.initrd
-rw-r--r--. 1 stack stack 1218966528 20 May 01:57 overcloud-full.qcow2
-rw-r--r--. 1 root  root  4875288576 31 May 23:24 overcloud-full.raw
-rwxr-xr-x. 1 stack stack   10030216 20 May 01:53 overcloud-full.vmlinuz

(undercloud) [stack@underooo ~]$ openstack image upload --image-path
/home/stack/images/
(undercloud) [stack@underooo ~]$ openstack imagelist
*public endpoint for image service not found*
<--- ??


despite
(undercloud) [stack@underooo ~]$ ll /var/lib/ironic/images/
total 4074704
-rw-r--r--. 1 42422 42422   69477395 31 May 23:24 overcloud-full.initrd
-rw-r--r--. 1 42422 42422 4875288576 31 May 23:25 overcloud-full.raw
-rwxr-xr-x. 1 42422 42422   10030216 31 May 23:24 overcloud-full.vmlinuz

Is this correct.

Regards.

Le mer. 26 mai 2021 19:35, wodel youchi  a écrit :

> Hi,
>
> I am using Wallaby.
>
> Using this documentation (
> https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/deployment/install_overcloud.html#deploy-the-overcloud),
> I am trying to build the overcloud images like this :
>
> export 
> OS_YAML="/usr/share/openstack-tripleo-common/image-yaml/overcloud-images-centos8.yaml"
> export DIB_YUM_REPO_CONF="/etc/yum.repos.d/delorean* 
> /etc/yum.repos.d/tripleo-centos-*"
> export STABLE_RELEASE="wallaby"
> openstack overcloud image build --config-file 
> /usr/share/openstack-tripleo-common/image-yaml/overcloud-images-python3.yaml 
> --config-file $OS_YAML
>
>
> But I got these errors at the end :
>
>> ...
>> *2021-05-26 18:14:45.815 | ERROR:root:overcloud-base has no valid mapping
>> for package openssl-perl *
>> 2021-05-26 18:14:46.543 | INFO:root:Mapping for overcloud-base : lvm2
>> *2021-05-26 18:14:46.554 | ERROR:root:overcloud-base has no valid mapping
>> for package lvm2 *
>> 2021-05-26 18:14:47.241 | INFO:root:Mapping for overcloud-base : sysstat
>> 2021-05-26 18:14:47.933 | INFO:root:Mapping for overcloud-ceph-storage :
>> chrony_package
>> 2021-05-26 18:14:48.645 | Running install-packages install.
>> 
>> 
>>
>>
>>
>> *2021-05-26 18:15:02.588 | Error: 2021-05-26 18:15:02.589 |  Problem:
>> conflicting requests 2021-05-26 18:15:02.589 |   - nothing provides
>> pacemaker-libs(x86-64) = 2.0.5-9.el8 needed by
>> pacemaker-remote-2.0.5-9.el8.x86_64 2021-05-26 18:15:02.592 | (You could
>> try using --skip-broken to work around the problem or --nobest to use more
>> than the best choice package)*
>> 2021-05-26 18:15:11.699 | INFO diskimage_builder.block_device.blockdevice
>> [-] State already cleaned - no way to do anything here
>> Exception occured while running the command
>> Traceback (most recent call last):
>>  File "/usr/lib/python3.6/site-packages/tripleoclient/command.py", line
>> 34, in run
>>super(Command, self).run(parsed_args)
>>  File "/usr/lib/python3.6/site-packages/osc_lib/command/command.py", line
>> 39, in run
>>return super(Command, self).run(parsed_args)
>>  File "/usr/lib/python3.6/site-packages/cliff/command.py", line 185, in
>> run
>>return_code = self.take_action(parsed_args) or 0
>>  File
>> "/usr/lib/python3.6/site-packages/tripleoclient/v1/overcloud_image.py",
>> line 120, in take_action
>>manager.build()
>>  File "/usr/lib/python3.6/site-packages/tripleo_common/image/build.py",
>> line 85, in build
>>elements, options, packages, extra_options)
>>  File
>> "/usr/lib/python3.6/site-packages/tripleo_common/image/image_builder.py",
>> line 140, in build_image
>>raise subprocess.CalledProcessError(process.returncode, cmd)
>> subprocess.CalledProcessError: Command '['disk-image-create', '-a',
>> 'amd64', '-o', './overcloud-full', '-t', 'qcow2', '-p',
>> 'python3-psutil,python3-debtcollector,sos,device-mapper-multipat
>> h,openstack-heat-agents,os-net-config,jq,python3-dbus', '--min-tmpfs=7',
>> '--mkfs-options', '-s size=4096', 'centos', 'baremetal', 'openvswitch',
>> 'overcloud-agent', 'overcloud-base', 'overc
>> loud-controller', 'overcloud-compute', 'overcloud-ceph-storage',
>> 'puppet-modules', 'stable-interface-names', 'grub2', 'element-manifest',
>> 'dynamic-login', 'iptables', 'enable-packages-inst
>> all', 'override-pip-and-virtualenv', 'dracut-regenerate',
>> 'remove-machine-id', 'remove-resolvconf', 'openssh', 'disable-nouveau',
>> 'selinux-permissive', 'interface-names']' returned non-zer
>> o exit status 1.
>> Command '['disk-image-create', '-a', 'amd64', '-o', './overcloud-full',
>> '-t', 'qcow2', '-p',
>> 'python3-psutil,python3-debtcollector,sos,device-mapper-multipath,openstack-heat-agents,os-net-

[rdo-users] Error building overcloud images

2021-05-26 Thread wodel youchi
Hi,

I am using Wallaby.

Using this documentation (
https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/deployment/install_overcloud.html#deploy-the-overcloud),
I am trying to build the overcloud images like this :

export 
OS_YAML="/usr/share/openstack-tripleo-common/image-yaml/overcloud-images-centos8.yaml"
export DIB_YUM_REPO_CONF="/etc/yum.repos.d/delorean*
/etc/yum.repos.d/tripleo-centos-*"
export STABLE_RELEASE="wallaby"
openstack overcloud image build --config-file
/usr/share/openstack-tripleo-common/image-yaml/overcloud-images-python3.yaml
--config-file $OS_YAML


But I got these errors at the end :

> ...
> *2021-05-26 18:14:45.815 | ERROR:root:overcloud-base has no valid mapping
> for package openssl-perl *
> 2021-05-26 18:14:46.543 | INFO:root:Mapping for overcloud-base : lvm2
> *2021-05-26 18:14:46.554 | ERROR:root:overcloud-base has no valid mapping
> for package lvm2 *
> 2021-05-26 18:14:47.241 | INFO:root:Mapping for overcloud-base : sysstat
> 2021-05-26 18:14:47.933 | INFO:root:Mapping for overcloud-ceph-storage :
> chrony_package
> 2021-05-26 18:14:48.645 | Running install-packages install.
> 
> 
>
>
>
> *2021-05-26 18:15:02.588 | Error: 2021-05-26 18:15:02.589 |  Problem:
> conflicting requests 2021-05-26 18:15:02.589 |   - nothing provides
> pacemaker-libs(x86-64) = 2.0.5-9.el8 needed by
> pacemaker-remote-2.0.5-9.el8.x86_64 2021-05-26 18:15:02.592 | (You could
> try using --skip-broken to work around the problem or --nobest to use more
> than the best choice package)*
> 2021-05-26 18:15:11.699 | INFO diskimage_builder.block_device.blockdevice
> [-] State already cleaned - no way to do anything here
> Exception occured while running the command
> Traceback (most recent call last):
>  File "/usr/lib/python3.6/site-packages/tripleoclient/command.py", line
> 34, in run
>super(Command, self).run(parsed_args)
>  File "/usr/lib/python3.6/site-packages/osc_lib/command/command.py", line
> 39, in run
>return super(Command, self).run(parsed_args)
>  File "/usr/lib/python3.6/site-packages/cliff/command.py", line 185, in
> run
>return_code = self.take_action(parsed_args) or 0
>  File
> "/usr/lib/python3.6/site-packages/tripleoclient/v1/overcloud_image.py",
> line 120, in take_action
>manager.build()
>  File "/usr/lib/python3.6/site-packages/tripleo_common/image/build.py",
> line 85, in build
>elements, options, packages, extra_options)
>  File
> "/usr/lib/python3.6/site-packages/tripleo_common/image/image_builder.py",
> line 140, in build_image
>raise subprocess.CalledProcessError(process.returncode, cmd)
> subprocess.CalledProcessError: Command '['disk-image-create', '-a',
> 'amd64', '-o', './overcloud-full', '-t', 'qcow2', '-p',
> 'python3-psutil,python3-debtcollector,sos,device-mapper-multipat
> h,openstack-heat-agents,os-net-config,jq,python3-dbus', '--min-tmpfs=7',
> '--mkfs-options', '-s size=4096', 'centos', 'baremetal', 'openvswitch',
> 'overcloud-agent', 'overcloud-base', 'overc
> loud-controller', 'overcloud-compute', 'overcloud-ceph-storage',
> 'puppet-modules', 'stable-interface-names', 'grub2', 'element-manifest',
> 'dynamic-login', 'iptables', 'enable-packages-inst
> all', 'override-pip-and-virtualenv', 'dracut-regenerate',
> 'remove-machine-id', 'remove-resolvconf', 'openssh', 'disable-nouveau',
> 'selinux-permissive', 'interface-names']' returned non-zer
> o exit status 1.
> Command '['disk-image-create', '-a', 'amd64', '-o', './overcloud-full',
> '-t', 'qcow2', '-p',
> 'python3-psutil,python3-debtcollector,sos,device-mapper-multipath,openstack-heat-agents,os-net-
>
> config,jq,python3-dbus', '--min-tmpfs=7', '--mkfs-options', '-s
> size=4096', 'centos', 'baremetal', 'openvswitch', 'overcloud-agent',
> 'overcloud-base', 'overcloud-controller', 'overcloud-co
> mpute', 'overcloud-ceph-storage', 'puppet-modules',
> 'stable-interface-names', 'grub2', 'element-manifest', 'dynamic-login',
> 'iptables', 'enable-packages-install', 'override-pip-and-virtual
> env', 'dracut-regenerate', 'remove-machine-id', 'remove-resolvconf',
> 'openssh', 'disable-nouveau', 'selinux-permissive', 'interface-names']'
> returned non-zero exit status 1.
>

What did I miss?

Regards.
___
users mailing list
users@lists.rdoproject.org
http://lists.rdoproject.org/mailman/listinfo/users

To unsubscribe: users-unsubscr...@lists.rdoproject.org