View Full Version : [SUMA3] Docker image inspect not working

08-Jun-2018, 08:20

I’m playing around with the Docker image functionality of SUSE Manager 3. The built process itself works perfect. What I cannot get to work is the "inspect"-part. According to https://www.suse.com/documentation/suse-manager-3/singlehtml/book_suma_best_practices_31/book_suma_best_practices_31.html#bp.images and https://wiki.microfocus.com/index.php/SUSE_Manager/imagebuilding#Known_Pitfalls the packages python and python-xml have to be installed inside the image to get inspect to work. Well, IMHO my Dockerfile does exactly that. Here it is, very simplistic, just for testing:

FROM suse/sles12sp3:latest
ENV TZ='Europe/Berlin'
ARG repo
ARG cert
RUN rm /etc/localtime && ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime && \
echo "$cert" > /etc/pki/trust/anchors/RHN-ORG-TRUSTED-SSL-CERT.pem && \
update-ca-certificates && \
echo "$repo" > /etc/zypp/repos.d/susemanager:dockerbuild.repo && \
zypper --gpg-auto-import-keys --non-interactive install python python-xml && \
zypper clean && rm -rf /var/cache/zypp* && rm -f /etc/zypp/repos.d/susemanager:dockerbuild.repo

Running the container and executing "rpm –q python python-xml" returns both packages as installed.

Nevertheless, all I get is this grey question mark in the Updates column after a successful image built. Looking into the details of the image SUSE Manager shows me "Inspect is successful" as Inspect Status. Clicking on "Inspect is successful" gets me "Module function dockerng.sls_build executed (code 2)".

Except "code 2" everything looks fine for me.

We are running version 3.1.5 of SUSE Manager. Someone got a hint were to start trouble-shooting?

Thanks and best regards

11-Jun-2018, 07:31
/var/log/rhn/rhn_web_ui.log and /var/log/salt/master (both on SUSE Manager server) should be the first candidates to check. Otherwise, please open a support request.

20-Jun-2018, 13:29
The last SUSE Manager updates to 3.1.6 solved this issue.