Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

otherpkgdir won't work with localdir and http repo #6118

Closed
zet809 opened this issue Mar 19, 2019 · 2 comments
Closed

otherpkgdir won't work with localdir and http repo #6118

zet809 opened this issue Mar 19, 2019 · 2 comments

Comments

@zet809
Copy link

zet809 commented Mar 19, 2019

For my user case, for otherpkglist, some package are online, and others are in local directory. My osimage looks like below.

# cat my_osimage.yaml
osimage:
  my_osimage:
    basic_attributes:
      arch: ppc64le
      distribution: rhels7.6
      osdistro: rhels7.6-ppc64le
      osname: Linux
    imagetype: linux
    package_selection:
      otherpkgdir:
      - /install/REPO/software
      - http://ftp.unicamp.br/pub/linuxpatch/toolchain/at/redhat/RHEL7/
      otherpkglist:
      - '/install/custom/my_osimage/local_pkgs.otherpkglist'
      - '/install/custom/my_osimage/advance-toolchain.otherpkglist'
...
# cat /install/custom/my_osimage/local_pkgs.otherpkglist
aaa
bbb
ccc
# cat /install/custom/my_osimage/advance-toolchain.otherpkglist
advance-toolchain-at12.0-perf
advance-toolchain-at12.0-runtime
advance-toolchain-at12.0-devel

When deploy it to CN, the pkgs list in /install/custom/my_osimage/advance-toolchain.otherpkglist which can be get on-line can not be installed with otherpkgs script, the log below show more details.

+ logger -p local4.info -t xcat.updatenode.postscript ' aaa bbb ccc installed.'
+ '[' ']'
+ '[' ' advance-toolchain-at12.0-perf* advance-toolchain-at12.0-runtime* advance-toolchain-at12.0-devel*' '!=' '' -a -n 172.16.253.100:80/install/REPO/software ']'
+ echo 'Warning: the packages  advance-toolchain-at12.0-perf* advance-toolchain-at12.0-runtime* advance-toolchain-at12.0-devel* could not be found in the yum/apt repository, falling back to rpm/dpkg command. If you want your packages to be installed with yum/apt, verify yum/apt is installed and createrepo/dpkg-scanpackages has been run.'
Warning: the packages  advance-toolchain-at12.0-perf* advance-toolchain-at12.0-runtime* advance-toolchain-at12.0-devel* could not be found in the yum/apt repository, falling back to rpm/dpkg command. If you want your packages to be installed with yum/apt, verify yum/apt is installed and createrepo/dpkg-scanpackages has been run.
+ logger -p local4.info -t xcat.updatenode.postscript 'Warning: the packages  advance-toolchain-at12.0-perf* advance-toolchain-at12.0-runtime* advance-toolchain-at12.0-devel* could not be found in the yum/apt repository, falling back to rpm/dpkg command. If you want your packages to be installed with yum/apt, verify yum/apt is installed and createrepo/dpkg-scanpackages has been run.'
+ '[' 0 -eq 0 ']'
+ dir_no_ftproot=REPO/software
+ mkdir -p /xcatpost/REPO/software
+ rm -f -R '/xcatpost/REPO/software/*'
+ mkdir -p /tmp/postage/
+ rm -f -R '/tmp/postage/*'
+ cd /tmp/postage
+ wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -e robots=off -t 0 -T 60 --reject 'index.html*' --no-parent http://172.16.253.100:80/install/REPO/software/
+ cd /tmp/postage/172.16.253.100/install
@immarvin
Copy link
Contributor

fixed in #6126

zet809 pushed a commit that referenced this issue Mar 20, 2019
fix issue otherpkgdir won't work with localdir and http repo #6118
@zet809
Copy link
Author

zet809 commented Mar 22, 2019

Verified, thx, @immarvin

@zet809 zet809 closed this as completed Mar 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants