Recovered from the older tannerjc.net wiki snapshot dated January 23, 2016.

scs

  • created an appliance with only openssh-server
  • built the group/image then deployed to a system
  • checked out group on devimage
  • created package1+package2, added package1 to group
  • created ccs file based on group
  • copied ccs file to deployed system
  • ran queries against the file
conary cs group-apache-appliance=apache.eng.rpath.com@r:apache-1-devel group.ccs
scp group.ccs root@dhcp66.eng.rpath.com:/root/.
[root@dhcp66 ~]# conary q group-apache-appliance
group-apache-appliance=1-4-1

[root@dhcp66 ~]# conary showcs group.ccs
group-apache-appliance=1-5-1
  • group based ccs has all deps/files
[root@dhcp66 ~]# conary showcs group.ccs --all-troves
group-apache-appliance=1-5-1
  cmpi-bindings-conary=0.4.0.svn.1177-5-1
  curl=7.15.5_9.el5-1-1
  fipscheck=1.2.0_1.el5-1-1
  fipscheck-lib=1.2.0_1.el5-1-1
  group-core=1-5-1
  info-sfcb=1-1-1
  libelf-lgpl=0.8.13-2-1
  libicu=3.6_5.11.4-1-1
  libidn=0.6.5_1.1-1-1
  m2crypto-conary=0.19.1-1-2
  openslp-conary=1.2.1-1-1
  openssh=4.3p2_41.el5_5.1-1-1
  openssh-server=4.3p2_41.el5_5.1-1-1
  package1=1-2-1
  pywbem-conary=0.7.0-4-1
  rpath-models=1.0.1-3-1
  rpath-tools=1.0.4_2d35f9642904-1-1
  sblim-cmpi-base-conary=1.6.0-1-1
  sblim-cmpi-devel-conary=2.0.1-1-1
  sblim-cmpi-network-conary=1.4.0-1-1
  sblim-sfcb-conary=1.3.9-8-1
  sblim-sfcb-schema-conary=2.24.0Experimental-1-1
  tag-initscript=20101006-1-1
  tag-kernel=20101006-1-1
  • disconnected group upgrade

[root@dhcp66 ~]# conary update group-apache-appliance --from-file group.ccs --disconnected
Applying update job 1 of 3:
    Update  group-core (1-4-1 - 1-5-1)
Applying update job 2 of 3:
    Install package1(:runtime)=1-2-1
Applying update job 3 of 3:
    Update  group-apache-appliance (1-4-1 - 1-5-1)
[root@dhcp66 ~]#
  • disconnected package install

[root@dhcp66 ~]# conary update package1 --from-file group.ccs --disconnected
Applying update job:
    Install package1(:runtime)=1-2-1
[root@dhcp66 ~]#
  • clear out resolve.conf

[root@dhcp66 ~]# cat /etc/hosts
#Installed by rBuilder
127.0.0.1       localhost.localdomain   localhost
[root@dhcp66 ~]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search eng.rpath.com
nameserver 172.16.58.3
nameserver 172.16.58.2
[root@dhcp66 ~]# cp /etc/resolv.conf /etc/resolv.conf.bak
[root@dhcp66 ~]# cat /dev/null  /etc/resolv.conf
[root@dhcp66 ~]# cat /etc/resolv.conf
  • try group and package install

[root@dhcp66 ~]# conary update group-apache-appliance --from-file group.ccs --disconnected
Applying update job 1 of 3:
    Update  group-core (1-4-1 - 1-5-1)
Applying update job 2 of 3:
    Install package1(:runtime)=1-2-1
Applying update job 3 of 3:
    Update  group-apache-appliance (1-4-1 - 1-5-1)
[root@dhcp66 ~]# conary rb 1
Applying update job 1 of 6:
    Update  group-apache-appliance (1-5-1 - 1-4-1)
Applying update job 2 of 6:
    Update  group-apache-appliance (/apache.eng.rpath.com@r:apache-1-devel/1-4-1 - /apache.eng.rpath.com@r:apache-1-devel//local@local:LOCAL/1-4-1)
Applying update job 3 of 6:
    Erase   package1(:runtime)=1-2-1
Applying update job 4 of 6:
    Update  group-core (1-5-1 - 1-4-1)
Applying update job 5 of 6:
    Update  group-core (/apache.eng.rpath.com@r:apache-1-devel/1-4-1 - /apache.eng.rpath.com@r:apache-1-devel//local@local:LOCAL/1-4-1)
[root@dhcp66 ~]# conary update package1 --from-file group.ccs --disconnected
Applying update job:
    Install package1(:runtime)=1-2-1
[root@dhcp66 ~]# conary rb 1
Applying update job:
    Erase   package1(:runtime)=1-2-1
[root@dhcp66 ~]#
  • alter domain resolution and try again

[root@dhcp66 ~]# cat /etc/hosts
#Installed by rBuilder
#127.0.0.1      localhost.localdomain   localhost
127.0.0.1       localhost.localdomain   localhost
8.8.8.8         eng.rpath.com           eng
[root@dhcp66 ~]# conary update group-apache-appliance --from-file group.ccs --disconnected
Applying update job 1 of 3:
    Update  group-core (1-4-1 - 1-5-1)
Applying update job 2 of 3:
    Install package1(:runtime)=1-2-1
Applying update job 3 of 3:
    Update  group-apache-appliance (1-4-1 - 1-5-1)
[root@dhcp66 ~]# conary rb 1
Applying update job 1 of 6:
    Update  group-apache-appliance (1-5-1 - 1-4-1)
Applying update job 2 of 6:
    Update  group-apache-appliance (/apache.eng.rpath.com@r:apache-1-devel/1-4-1 - /apache.eng.rpath.com@r:apache-1-devel//local@local:LOCAL/1-4-1)
Applying update job 3 of 6:
    Erase   package1(:runtime)=1-2-1
Applying update job 4 of 6:
    Update  group-core (1-5-1 - 1-4-1)
Applying update job 5 of 6:
    Update  group-core (/apache.eng.rpath.com@r:apache-1-devel/1-4-1 - /apache.eng.rpath.com@r:apache-1-devel//local@local:LOCAL/1-4-1)
[root@dhcp66 ~]# conary update package1 --from-file group.ccs --disconnected
Applying update job:
    Install package1(:runtime)=1-2-1
[root@dhcp66 ~]# conary rb 1
Applying update job:
    Erase   package1(:runtime)=1-2-1
[root@dhcp66 ~]#
  • bring interface down, apply updates

[root@dhcp66 ~]# ifdown eth0
sconnected66 ~]# conary update group-apache-appliance --from-file group.ccs --di
Applying update job 1 of 3:
    Update  group-core (1-4-1 - 1-5-1)
Applying update job 2 of 3:
    Install package1(:runtime)=1-2-1
Applying update job 3 of 3:
    Update  group-apache-appliance (1-4-1 - 1-5-1)
[root@dhcp66 ~]# conary rb 1
Error occurred opening repository http://apache.eng.rpath.com/conary/: Network is unreachable (via Conary proxy 172.16.175.172)
[root@dhcp66 ~]# conary update package1 --from-file group.ccs --disconnected
no new troves were found
[root@dhcp66 ~]# conary rb 1
Error occurred opening repository http://apache.eng.rpath.com/conary/: Network is unreachable (via Conary proxy 172.16.175.172)
[root@dhcp66 ~]# ifup eth0

Determining IP information for eth0... done.
  • showcs should work without networking
[root@dhcp66 ~]# ifdown eth0
[root@dhcp66 ~]# conary showcs group.ccs
group-apache-appliance=1-5-1
  • old conary showcs

[root@dhcp66 ~]# conary q conary
conary=2.1.20-1-1
[root@dhcp66 ~]# conary showcs group.ccs
group-apache-appliance=1-5-1
[root@dhcp66 ~]# ifdown eth0
[root@dhcp66 ~]# conary showcs group.ccs
group-apache-appliance=1-5-1