#484 Cannot initialize mock environment for sclo7-httpd24-rh-el7 build target
Closed: Fixed with Explanation by arrfab. Opened by jstanek.

Similarly to #421, the mock complains that the dnf and dnf-plugins-core cannot be installed.

The failed build task: https://cbs.centos.org/koji/taskinfo?taskID=2572727

I suspect the same root cause applies (old tag that was not updated in some time and needs to be) and that the solution will be the same.

Since there seems to be some updates for these tags from RH from time to time, it may be worthwhile to update all such tags. As far as I know, it should be the following build tags:

sclo7-devassist09-rh-el7-build
sclo7-git19-rh-el7-build
sclo7-httpd24-rh-el7-build
sclo7-mariadb55-rh-el7-build
sclo7-maven3-rh-el7-build
sclo7-maven30-rh-el7-build
sclo7-mongodb24-rh-el7-build
sclo7-mysql55-rh-el7-build
sclo7-nginx14-rh-el7-build
sclo7-nginx16-rh-el7-build
sclo7-nodejs010-rh-el7-build
sclo7-perl516-rh-el7-build
sclo7-php54-rh-el7-build
sclo7-php55-rh-el7-build
sclo7-postgresql92-rh-el7-build
sclo7-python33-rh-el7-build
sclo7-ror40-rh-el7-build
sclo7-ruby193-rh-el7-build
sclo7-ruby200-rh-el7-build
sclo7-thermostat1-rh-el7-build
sclo7-v8314-rh-el7-build

I have no idea if these will actually receive any updates in the future (they should be mostly EOL),
so I would be happy with only fixing the sclo7-httpd24-rh-el7-build one. On the other hand, if it is not too much of a hassle, updating all of them might prevent future tickets similar to this one.


Metadata Update from @arrfab:
- Issue assigned to arrfab

Metadata Update from @arrfab:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: cbs, centos-common-infra, low-gain, low-trouble

I just updated the whole batch of tags you mentioned so can you try a build ?

 for tag in sclo7-devassist09-rh-el7-build sclo7-git19-rh-el7-build sclo7-httpd24-rh-el7-build sclo7-mariadb55-rh-el7-build sclo7-maven3-rh-el7-build sclo7-maven30-rh-el7-build sclo7-mongodb24-rh-el7-build sclo7-mysql55-rh-el7-build sclo7-nginx14-rh-el7-build sclo7-nginx16-rh-el7-build sclo7-nodejs010-rh-el7-build sclo7-perl516-rh-el7-build sclo7-php54-rh-el7-build sclo7-php55-rh-el7-build  sclo7-postgresql92-rh-el7-build sclo7-python33-rh-el7-build sclo7-ror40-rh-el7-build sclo7-ruby193-rh-el7-build sclo7-ruby200-rh-el7-build sclo7-thermostat1-rh-el7-build sclo7-v8314-rh-el7-build ; do
>   echo " == Fixing tag $tag"
>   koji taginfo ${tag}|grep -q sclo7-bootstrap && koji remove-external-repo sclo7-bootstrap ${tag}
>   koji taginfo ${tag}|grep -q centos7-extras || koji add-external-repo --mode bare --tag ${tag} centos7-extras
> done
 == Fixing tag sclo7-devassist09-rh-el7-build
Added external repo centos7-extras to tag sclo7-devassist09-rh-el7-build (priority 15)
 == Fixing tag sclo7-git19-rh-el7-build
Added external repo centos7-extras to tag sclo7-git19-rh-el7-build (priority 15)
 == Fixing tag sclo7-httpd24-rh-el7-build
 == Fixing tag sclo7-mariadb55-rh-el7-build
Added external repo centos7-extras to tag sclo7-mariadb55-rh-el7-build (priority 15)
 == Fixing tag sclo7-maven3-rh-el7-build
Added external repo centos7-extras to tag sclo7-maven3-rh-el7-build (priority 15)
 == Fixing tag sclo7-maven30-rh-el7-build
Added external repo centos7-extras to tag sclo7-maven30-rh-el7-build (priority 15)
 == Fixing tag sclo7-mongodb24-rh-el7-build
Added external repo centos7-extras to tag sclo7-mongodb24-rh-el7-build (priority 15)
 == Fixing tag sclo7-mysql55-rh-el7-build
Added external repo centos7-extras to tag sclo7-mysql55-rh-el7-build (priority 15)
 == Fixing tag sclo7-nginx14-rh-el7-build
Added external repo centos7-extras to tag sclo7-nginx14-rh-el7-build (priority 15)
 == Fixing tag sclo7-nginx16-rh-el7-build
Added external repo centos7-extras to tag sclo7-nginx16-rh-el7-build (priority 15)
 == Fixing tag sclo7-nodejs010-rh-el7-build
Added external repo centos7-extras to tag sclo7-nodejs010-rh-el7-build (priority 15)
 == Fixing tag sclo7-perl516-rh-el7-build
Added external repo centos7-extras to tag sclo7-perl516-rh-el7-build (priority 15)
 == Fixing tag sclo7-php54-rh-el7-build
Added external repo centos7-extras to tag sclo7-php54-rh-el7-build (priority 15)
 == Fixing tag sclo7-php55-rh-el7-build
Added external repo centos7-extras to tag sclo7-php55-rh-el7-build (priority 15)
 == Fixing tag sclo7-postgresql92-rh-el7-build
Added external repo centos7-extras to tag sclo7-postgresql92-rh-el7-build (priority 15)
 == Fixing tag sclo7-python33-rh-el7-build
Added external repo centos7-extras to tag sclo7-python33-rh-el7-build (priority 15)
 == Fixing tag sclo7-ror40-rh-el7-build
Added external repo centos7-extras to tag sclo7-ror40-rh-el7-build (priority 15)
 == Fixing tag sclo7-ruby193-rh-el7-build
Added external repo centos7-extras to tag sclo7-ruby193-rh-el7-build (priority 15)
 == Fixing tag sclo7-ruby200-rh-el7-build
Added external repo centos7-extras to tag sclo7-ruby200-rh-el7-build (priority 15)
 == Fixing tag sclo7-thermostat1-rh-el7-build
Added external repo centos7-extras to tag sclo7-thermostat1-rh-el7-build (priority 15)
 == Fixing tag sclo7-v8314-rh-el7-build
Added external repo centos7-extras to tag sclo7-v8314-rh-el7-build (priority 15)

Metadata Update from @arrfab:
- Issue priority set to: Waiting on Reporter (was: Waiting on Assignee)

I tried the httpd build again, and it still fails: https://cbs.centos.org/koji/taskinfo?taskID=2573093

From the log above, it seems that the sclo7-httpd24-rh-el7-build tag already had the repo attached and nothing has changed for it (or possibly the sclo7-bootstrap was removed, I do not know if the removal prints anything).

It seems the issue may lie elsewhere… :weary:

Found it with the bare vs koji merge mode (different between el7 and needed for el8s+)

 for tag in sclo7-devassist09-rh-el7-build sclo7-git19-rh-el7-build sclo7-httpd24-rh-el7-build sclo7-mariadb55-rh-el7-build sclo7-maven3-rh-el7-build sclo7-maven30-rh-el7-build sclo7-mongodb24-rh-el7-build sclo7-mysql55-rh-el7-build sclo7-nginx14-rh-el7-build sclo7-nginx16-rh-el7-build sclo7-nodejs010-rh-el7-build sclo7-perl516-rh-el7-build sclo7-php54-rh-el7-build sclo7-php55-rh-el7-build  sclo7-postgresql92-rh-el7-build sclo7-python33-rh-el7-build sclo7-ror40-rh-el7-build sclo7-ruby193-rh-el7-build sclo7-ruby200-rh-el7-build sclo7-thermostat1-rh-el7-build sclo7-v8314-rh-el7-build ; do
>    echo " == Fixing tag $tag with mode 'koji' "
>    koji taginfo ${tag}|grep -q centos7-extras && koji edit-external-repo --mode koji --tag ${tag} centos7-extras
>  done 
 == Fixing tag sclo7-devassist09-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-git19-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-httpd24-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-mariadb55-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-maven3-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-maven30-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-mongodb24-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-mysql55-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-nginx14-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-nginx16-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-nodejs010-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-perl516-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-php54-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-php55-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-postgresql92-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-python33-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-ror40-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-ruby193-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-ruby200-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-thermostat1-rh-el7-build with mode 'koji' 
 == Fixing tag sclo7-v8314-rh-el7-build with mode 'koji' 

It was first tested on your build and it's now working : https://cbs.centos.org/koji/taskinfo?taskID=2573101

Metadata Update from @arrfab:
- Issue close_status updated to: Fixed with Explanation
- Issue status updated to: Closed (was: Open)

Log in to comment on this ticket.

Metadata