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

Package installed but files are not available to desired location. #154

Open
praveenkumar opened this issue Sep 12, 2016 · 3 comments
Open

Comments

@praveenkumar
Copy link

praveenkumar commented Sep 12, 2016

I made below changes to centos-atomic-host.json and atomic-7.1-vagrant.ks also I add another repo ADB to make adb-utils and fuse-sshfs available to repo tree. After running custom build I found out package is installed but files are not present in desired location. Any idea about this behavior?

# git diff atomic-7.1-vagrant.ks
diff --git a/atomic-7.1-vagrant.ks b/atomic-7.1-vagrant.ks
index 8232de2..d65bcfa 100644
--- a/atomic-7.1-vagrant.ks
+++ b/atomic-7.1-vagrant.ks
@@ -126,5 +126,11 @@ EOKEYS
 chmod 600 ~vagrant/.ssh/authorized_keys
 chown -R vagrant:vagrant ~vagrant/.ssh/

+# update docker.service file to exec the certificate generation script
+sed -i.back 's/ExecStart=/ExecStartPre=\/opt\/adb\/cert-gen.sh\n&/' /usr/lib/systemd/system/docker.service
+
+# update the docker config to listen on TCP as well as unix socket
+sed -i.back '/OPTIONS=*/c\OPTIONS="--selinux-enabled -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --tlscacert=/etc/docker/ca.pem --tlscert=/etc/docker/server-cert.pem --tlskey=/etc/docker/server-key.pem
+
 %end

# git diff centos-atomic-host.json
diff --git a/centos-atomic-host.json b/centos-atomic-host.json
index 81c6b0d..ec500e7 100644
--- a/centos-atomic-host.json
+++ b/centos-atomic-host.json
@@ -5,7 +5,7 @@
     "ref": "centos-atomic-host/7/x86_64/standard",

     "repos": ["CentOS-Base", "CentOS-updates", "CentOS-extras",
-              "rhel-atomic-rebuild", "CentOS-CR"],
+              "rhel-atomic-rebuild", "CentOS-CR", "ADB"],

     "selinux": true,

@@ -60,19 +60,13 @@
@@ -60,19 +60,13 @@
                 "NetworkManager", "vim-minimal", "nano",
                 "sudo",
                 "tuned", "tuned-profiles-atomic",
-                "kubernetes", "etcd",
-                "flannel",
                 "irqbalance",
                 "bash-completion",
-                "rsync", "tmux",
+                "rsync",
                 "net-tools", "nmap-ncat",
-                "bind-utils",
+                "bind-utils", "adb-utils",
                 "authconfig",
                 "policycoreutils-python",
-                "cockpit-shell",
-                "cockpit-bridge",
-                 "cockpit-docker",
-                 "cockpit-ostree",
                 "setools-console",
                 "atomic-devmode",
                 "docker-latest",
@@ -80,7 +74,7 @@
                 "docker-novolume-plugin",
                  "stub-redhat-lsb-core-only-for-ceph",
                  "ceph-common", "device-mapper-multipath",
-                 "sg3_utils", "glusterfs-fuse"],
+                 "sg3_utils", "fuse-sshfs"],

     "remove-from-packages": [["yum", "/usr/bin/.*"],
                             ["kernel", "/lib/modules/.*/drivers/gpu"],

# cat ADB.repo 
[ADB]
name=rhel-atomic-rebuild
baseurl=http://mirror.centos.org/centos/7/atomic/x86_64/adb/
gpgcheck=0

bash-4.2# rpm -aq | grep adb-utils
adb-utils-2.0-1.el7.noarch

bash-4.2# rpm -ql adb-utils
/etc/bash_completion.d/oadm
/etc/bash_completion.d/oc
/etc/bash_completion.d/openshift
/etc/sysconfig/openshift_option
/opt/adb
/opt/adb/add_insecure_registry
/opt/adb/cert-gen.sh
/opt/adb/openshift
/opt/adb/openshift/get_ip_address
/opt/adb/openshift/openshift
/opt/adb/openshift/openshift_provision
/opt/adb/openshift/openshift_stop
/opt/adb/openshift/templates
/opt/adb/openshift/templates/adb
/opt/adb/openshift/templates/adb/image-streams-centos7.json
/opt/adb/openshift/templates/adb/jenkins-template.json
/opt/adb/openshift/templates/cdk
/opt/adb/openshift/templates/cdk/image-streams-rhel7.json
/opt/adb/openshift/templates/cdk/jenkins-ephemeral-template.json
/opt/adb/openshift/templates/cdk/jenkins-persistent-template.json
/opt/adb/openshift/templates/common
/opt/adb/openshift/templates/common/cakephp-mysql.json
/opt/adb/openshift/templates/common/cakephp.json
/opt/adb/openshift/templates/common/eap64-basic-s2i.json
/opt/adb/openshift/templates/common/eap64-mysql-persistent-s2i.json
/opt/adb/openshift/templates/common/jboss-image-streams.json
/opt/adb/openshift/templates/common/jenkins-slave-template.json
/opt/adb/openshift/templates/common/jws30-tomcat7-mysql-persistent-s2i.json
/opt/adb/openshift/templates/common/nodejs-mongodb.json
/opt/adb/openshift/templates/common/nodejs.json
/opt/adb/sccli.py
/opt/adb/sccli.pyc
/opt/adb/sccli.pyo
/usr/bin/add_insecure_registry
/usr/bin/sccli
/usr/lib/systemd/system/openshift.service
/usr/share/doc/adb-utils-2.0
/usr/share/doc/adb-utils-2.0/LICENSE
/usr/share/doc/adb-utils-2.0/README.rst


bash-4.2# ls -lhR /opt/
/opt/:
total 0
@praveenkumar praveenkumar changed the title build_stage2.sh not able to pick required set of packages defined in json Package installed but files are not available to desired location. Sep 12, 2016
@cgwalters
Copy link
Member

coreos/rpm-ostree#233

@cgwalters
Copy link
Member

Is adb-utils a SCL? If it's not, I don't see a reason to install into /opt.

Though regardless - we'll look at handling this in rpm-ostree sometime soon.

@praveenkumar
Copy link
Author

Is adb-utils a SCL? If it's not, I don't see a reason to install into /opt.

It is not a SCL but this package on contain some files for that we were using /opt for a long time.

Though regardless - we'll look at handling this in rpm-ostree sometime soon.

That would be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants