Giter Site home page Giter Site logo

pavankjadda / bookstore Goto Github PK

View Code? Open in Web Editor NEW
14.0 5.0 53.0 33.92 MB

Spring Boot Project deployed with Jenkins CICD pipeline on OpenShift

License: GNU General Public License v3.0

Java 33.31% HTML 50.62% JavaScript 16.08%
spring-boot jenkins-pipeline openshift cicd aws jenkins-cicd-pipeline bookstore jenkinsfile java

bookstore's Introduction

Hi 👋, I'm Pavan Kumar Jadda

Full Stack developer working on Java, Angular and React

pavankjadda

pavankjadda

pavankjadda

Connect with me:

https://dev.to/pavankjadda pavankjadda https://www.linkedin.com/in/pavan-kumar-j-84b58117 @pavankjadda

Languages and Tools:

  • Java
  • Spring Boot
  • Spring Data JPA
  • Spring Security
  • Angular
  • ReactJS
  • Docker Swarm and AWS
  • Jenkins
  • HTML and CSS

pavankjadda

 pavankjadda

bookstore's People

Contributors

nayaks avatar pavankjadda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bookstore's Issues

Warning: JAVA_HOME environment variable is not set. Picked up JAVA_TOOL_OPTIONS: -XX:+UnlockExperimentalVMOptions -Dsun.zip.disableMemoryMapping=true -Dmaven.multiModuleProjectDirectory system property is not set.

Started by user admin
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/jobs/Bookstore/workspace
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Tool Install)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Build App)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] git
The recommended git tool is: NONE
No credentials specified

/usr/bin/git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/Bookstore/workspace/.git # timeout=10
Fetching changes from the remote Git repository
/usr/bin/git config remote.origin.url https://github.com/abhishekshastri/BookStore.git # timeout=10
Fetching upstream changes from https://github.com/abhishekshastri/BookStore.git
/usr/bin/git --version # timeout=10
git --version # 'git version 2.27.0'
/usr/bin/git fetch --tags --force --progress -- https://github.com/abhishekshastri/BookStore.git +refs/heads/:refs/remotes/origin/ # timeout=10
/usr/bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision 595bc87 (refs/remotes/origin/master)
/usr/bin/git config core.sparsecheckout # timeout=10
/usr/bin/git checkout -f 595bc87 # timeout=10
/usr/bin/git branch -a -v --no-abbrev # timeout=10
/usr/bin/git branch -D master # timeout=10
/usr/bin/git checkout -b master 595bc87 # timeout=10
Commit message: "Update Jenkinsfile"
/usr/bin/git rev-list --no-walk 595bc87 # timeout=10
[Pipeline] script
[Pipeline] {
[Pipeline] readMavenPom
[Pipeline] }
[Pipeline] // script
[Pipeline] sh

  • mvn clean install -DskipTests=true
    Warning: JAVA_HOME environment variable is not set.
    Picked up JAVA_TOOL_OPTIONS: -XX:+UnlockExperimentalVMOptions -Dsun.zip.disableMemoryMapping=true
    -Dmaven.multiModuleProjectDirectory system property is not set.
    [Pipeline] }
    [Pipeline] // withEnv
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] stage
    [Pipeline] { (Test)
    Stage "Test" skipped due to earlier failure(s)
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] stage
    [Pipeline] { (Code Analysis)
    Stage "Code Analysis" skipped due to earlier failure(s)
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] stage
    [Pipeline] { (Create Image Builder)
    Stage "Create Image Builder" skipped due to earlier failure(s)
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] stage
    [Pipeline] { (Build Image)
    Stage "Build Image" skipped due to earlier failure(s)
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] stage
    [Pipeline] { (Create DEV)
    Stage "Create DEV" skipped due to earlier failure(s)
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] stage
    [Pipeline] { (Deploy DEV)
    Stage "Deploy DEV" skipped due to earlier failure(s)
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] stage
    [Pipeline] { (Promote to STAGE?)
    Stage "Promote to STAGE?" skipped due to earlier failure(s)
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] stage
    [Pipeline] { (Deploy STAGE)
    Stage "Deploy STAGE" skipped due to earlier failure(s)
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] }
    [Pipeline] // withEnv
    [Pipeline] }
    [Pipeline] // node
    [Pipeline] End of Pipeline
    ERROR: script returned exit code 1
    Finished: FAILURE

docker: command not found

Docker pull command returns following error in jenkins

[workspace] Running shell script

+ docker pull maven:3-alpine

/var/lib/jenkins/jobs/BookStore/branches/master/workspace@tmp/durable-20ad5206/script.sh: line 2: docker: command not found

script returned exit code 127

kubeadm init with aws config complains missing ClusterID


I1006 16:48:11.421975       1 controllermanager.go:109] Version: v1.8.0
 I1006 16:48:11.425600       1 leaderelection.go:174] attempting to acquire leader lease...
 I1006 16:48:11.437910       1 leaderelection.go:184] successfully acquired lease kube-system/kube-controller-manager
 W1006 16:48:11.438141       1 controllermanager.go:138] --use-service-account-credentials was specified without providing a --service-account-private-key-file
 I1006 16:48:11.439510       1 event.go:218] Event(v1.ObjectReference{Kind:"Endpoints", Namespace:"kube-system", Name:"kube-controller-manager", UID:"0f517bd9-aaac-11e7-8da7-0e6d35421f60", APIVersion:"v1", ResourceVersion:"2946", FieldPath:""}): type: 'Normal' reason: 'LeaderElection' ip-172-30-0-69.aws-ermas.com became leader
 I1006 16:48:11.457749       1 aws.go:847] Building AWS cloudprovider
 I1006 16:48:11.457836       1 aws.go:810] Zone not specified in configuration file; querying AWS metadata service
 E1006 16:48:11.672185       1 tags.go:94] Tag "KubernetesCluster" nor "kubernetes.io/cluster/..." not found; Kubernetes may behave unexpectedly.
 W1006 16:48:11.672207       1 tags.go:78] AWS cloud - no clusterID filtering applied for shared resources; do not run multiple clusters in this AZ.
 F1006 16:48:11.672265       1 controllermanager.go:151] error building controller context: no ClusterID Found.  A ClusterID is required for the cloud provider to function properly.  This check can be bypassed by setting the allow-untagged-cloud option

Unable to deploy OpenShift Cluster on AWS

Unable to deploy OpenShift Cluster on AWS

TASK [openshift_hosted : Poll for OpenShift pod deployment success] *********************************************************************************
FAILED - RETRYING: Poll for OpenShift pod deployment success (60 retries left).

Unable to get registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift image error in OpenShift deployment

I have an OpenShift origin (OKD) cluster setup on AWS. Jenkins being used for CICD pipeline deployment. Based in OpenShift docs, I am trying to use Source to Image (S2I) to convert my Java source code to image using redhat-openjdk-18/openjdk18-openshift image. I used following commands

Create new build

$ oc new-build --binary=true --name=bookstore --image-stream=openjdk18-openshift
--> Found image 24d98bd (7 days old) in image stream "cicd/openjdk18-openshift" under tag "latest" for "openjdk18-openshift"

    Java Applications
    -----------------
    Platform for building and running plain Java applications (fat-jar and flat classpath)

    Tags: builder, java

    * A source build using binary input will be created
      * The resulting image will be pushed to image stream "bookstore:latest"
      * A binary build was created, use 'start-build --from-dir' to trigger a new build

--> Creating resources with label build=bookstore ...
    imagestream "bookstore" created
    buildconf

Start Build

$ oc start-build bookstore --from-dir=./ocp --follow
Uploading directory "ocp" as binary input for the build ...
build "bookstore-1" started
Receiving source from STDIN as archive ...
pulling image error : open /etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt: no such file or directory
error: build error: unable to get registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift@sha256:38dab2c3f60ade6857cc2a592184c964d3a51e2d3b5ef07def4b8ad4215d2bbf

As shown above, I get build error: unable to get registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift error while running the start-build command.

User "system" cannot get securitycontextconstraints.security.openshift.io at the cluster scope

By default Minishift does not run containers as root, this will create issues when running commands like $oc adm policy add-scc-to-user anyuid -z default. It will produce error like

Error from server (Forbidden): securitycontextconstraints.security.openshift.io "anyuid" is forbidden: User "system" cannot get securitycontextconstraints.security.openshift.io at the cluster scope: User "system" cannot get securitycontextconstraints.security.openshift.io at the cluster scope

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

Jenkins error

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

using credential github
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/pavankjadda/BookStore # timeout=10
Fetching without tags
Fetching upstream changes from https://github.com/pavankjadda/BookStore
 > git --version # timeout=10
using GIT_ASKPASS to set credentials github
 > git fetch --no-tags --progress https://github.com/pavankjadda/BookStore +refs/heads/*:refs/remotes/origin/*
Checking out Revision 0e202f2ded817f4d4d1fe1f2249dbb9a8a61c64e (openshift-aws)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 0e202f2ded817f4d4d1fe1f2249dbb9a8a61c64e
Commit message: "Updated Config files"
 > git rev-list --no-walk 0e202f2ded817f4d4d1fe1f2249dbb9a8a61c64e # timeout=10
No credentials specified
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/pavankjadda/BookStore.git # timeout=10
Fetching upstream changes from https://github.com/pavankjadda/BookStore.git
 > git --version # timeout=10
 > git fetch --tags --progress https://github.com/pavankjadda/BookStore.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/openshift-aws^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/openshift-aws^{commit} # timeout=10
Checking out Revision 0e202f2ded817f4d4d1fe1f2249dbb9a8a61c64e (refs/remotes/origin/openshift-aws)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 0e202f2ded817f4d4d1fe1f2249dbb9a8a61c64e
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D openshift-aws # timeout=10
 > git checkout -b openshift-aws 0e202f2ded817f4d4d1fe1f2249dbb9a8a61c64e
Commit message: "Updated Config files"
+ mvn -s templates/cicd-settings-nexus3.xml clean package -DskipTests=true
Picked up JAVA_TOOL_OPTIONS: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Dsun.zip.disableMemoryMapping=true
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------< com.books:bookstore >-------------------------
[INFO] Building BookStore 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ bookstore ---
[INFO] Deleting /var/lib/jenkins/jobs/BookStore/branches/openshift-aws/workspace/target
[INFO] 
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ bookstore ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] Copying 26 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ bookstore ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 18 source files to /var/lib/jenkins/jobs/BookStore/branches/openshift-aws/workspace/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.200 s
[INFO] Finished at: 2019-03-28T18:37:52Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project bookstore: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] 
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
script returned exit code 1

Jenkins error on OpenShift: cannot create regular file ‘/var/lib/jenkins/plugins’: Permission denied

I have an OpenShift origin (OKD) environment setup on AWS. I am trying to deploy jenkins-persistent image to bring up jenkins pod in an openshift project. For persistent storage, I am using Persistent Volume and Persistent Volume claims based on Kubernetes documentation.

[root@ip-10-0-0-7 BookStore]# oc get pv
NAME           CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS    CLAIM               STORAGECLASS   REASON    AGE
jenkins        5Gi        RWO            Retain           Bound     cicd/jenkins        manual                   1h
jenkins-data   5Gi        RWO            Retain           Bound     cicd/jenkins-data   manual                   3h
[root@ip-10-0-0-7 BookStore]# oc get pvc
NAME           STATUS    VOLUME         CAPACITY   ACCESS MODES   STORAGECLASS   AGE
jenkins        Bound     jenkins        5Gi        RWO            manual         1h
jenkins-data   Bound     jenkins-data   5Gi        RWO            manual         3h

I gave access permissions based on OpenShift docs. Now, whenever I try to deploy this image, I see error Copying Jenkins configuration to /var/lib/jenkins ...
cp: cannot create regular file ‘/var/lib/jenkins/config.xml’: Permission denied

Error Log:

OPENSHIFT_JENKINS_JVM_ARCH='', CONTAINER_MEMORY_IN_MB='512', using /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.i386/jre/bin/java and /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.i386/bin/javac
Picked up JAVA_TOOL_OPTIONS: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Dsun.zip.disableMemoryMapping=true
mkdir: cannot create directory ‘/var/lib/jenkins/logs’: Permission denied
/usr/libexec/s2i/run: line 306: /var/lib/jenkins/image-version: Permission denied
Generating kubernetes-plugin configuration (/opt/openshift/configuration/config.xml.tpl) ...
Generating administrative monitor configuration (/opt/openshift/configuration/config.xml.tpl) ...
Generating kubernetes-plugin credentials (/var/lib/jenkins/credentials.xml.tpl) ...
Copying Jenkins configuration to /var/lib/jenkins ...
cp: cannot create regular file ‘/var/lib/jenkins/config.xml’: Permission denied
cp: cannot create regular file ‘/var/lib/jenkins/config.xml.tpl’: Permission denied
cp: cannot create regular file ‘/var/lib/jenkins/credentials.xml’: Permission denied
cp: cannot create regular file ‘/var/lib/jenkins/credentials.xml.tpl’: Permission denied
cp: cannot create directory ‘/var/lib/jenkins/init.groovy.d’: Permission denied
cp: cannot create regular file ‘/var/lib/jenkins/jenkins.CLI.xml’: Permission denied
cp: cannot create directory ‘/var/lib/jenkins/jobs’: Permission denied
cp: cannot create regular file ‘/var/lib/jenkins/org.jenkinsci.main.modules.sshd.SSHD.xml’: Permission denied
cp: cannot create directory ‘/var/lib/jenkins/users’: Permission denied
mkdir: cannot create directory ‘/var/lib/jenkins/plugins’: Permission denied
Copying 104 files to /var/lib/jenkins ...
cp: cannot create regular file ‘/var/lib/jenkins/plugins’: Permission denied
cp: cannot create regular file ‘/var/lib/jenkins/plugins’: Permission denied
cp: cannot create regular file ‘/var/lib/jenkins/plugins’: Permission denied
cp: cannot create regular file ‘/var/lib/jenkins/plugins’: Permission denied
cp: cannot create regular file ‘/var/lib/jenkins/plugins’: Permission denied
cp: cannot create regular file ‘/var/lib/jenkins/plugins’: Permission denied
---
--
cp: cannot create regular file ‘/var/lib/jenkins/plugins’: Permission denied
Creating initial Jenkins 'admin' user ...
ls: cannot access /var/lib/jenkins/users: No such file or directory
ls: cannot access /var/lib/jenkins/users/: No such file or directory
sed: can't read /var/lib/jenkins/users//config.xml: No such file or directory
/usr/libexec/s2i/run: line 23: /var/lib/jenkins/password: Permission denied
touch: cannot touch ‘/var/lib/jenkins/configured’: Permission denied
Administrative monitors that contact the update center will remain active
Migrating slave image configuration to current version tag ...
sed: can't read /var/lib/jenkins/config.xml: No such file or directory
sed: can't read /var/lib/jenkins/config.xml: No such file or directory
sed: can't read /var/lib/jenkins/config.xml: No such file or directory
sed: can't read /var/lib/jenkins/config.xml: No such file or directory
sed: can't read /var/lib/jenkins/config.xml: No such file or directory
sed: can't read /var/lib/jenkins/config.xml: No such file or directory
sed: can't read /var/lib/jenkins/config.xml: No such file or directory
sed: can't read /var/lib/jenkins/config.xml: No such file or directory
+ exec java -XX:+UseParallelGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Xmx256m -Dfile.encoding=UTF8 -Djavamelody.displayed-counters=log,error -Duser.home=/var/lib/jenkins -Djavamelody.application-name=JENKINS -jar /usr/lib/jenkins/jenkins.war
Picked up JAVA_TOOL_OPTIONS: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Dsun.zip.disableMemoryMapping=true
OpenJDK Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
Running from: /usr/lib/jenkins/jenkins.war
webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
Mar 25, 2019 6:04:16 AM org.eclipse.jetty.util.log.Log initialized
INFO: Logging initialized @971ms to org.eclipse.jetty.util.log.JavaUtilLog
Mar 25, 2019 6:04:16 AM winstone.Logger logInternal
INFO: Beginning extraction from war file
Mar 25, 2019 6:04:16 AM winstone.Logger logInternal
INFO: Jetty shutdown successfully
java.io.FileNotFoundException: /var/lib/jenkins/war/META-INF/MANIFEST.MF (No such file or directory)
	at java.io.FileOutputStream.open0(Native Method)
	at java.io.FileOutputStream.open(FileOutputStream.java:270)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
	at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:278)
	at winstone.HostConfiguration.<init>(HostConfiguration.java:81)
	at winstone.HostGroup.initHost(HostGroup.java:66)
	at winstone.HostGroup.<init>(HostGroup.java:45)
	at winstone.Launcher.<init>(Launcher.java:169)
	at winstone.Launcher.main(Launcher.java:354)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at Main._main(Main.java:344)
	at Main.main(Main.java:160)
Mar 25, 2019 6:04:16 AM winstone.Logger logInternal
SEVERE: Container startup failed
java.io.FileNotFoundException: /var/lib/jenkins/war/META-INF/MANIFEST.MF (No such file or directory)
	at java.io.FileOutputStream.open0(Native Method)
	at java.io.FileOutputStream.open(FileOutputStream.java:270)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
	at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:278)
	at winstone.HostConfiguration.<init>(HostConfiguration.java:81)
	at winstone.HostGroup.initHost(HostGroup.java:66)
	at winstone.HostGroup.<init>(HostGroup.java:45)
	at winstone.Launcher.<init>(Launcher.java:169)
	at winstone.Launcher.main(Launcher.java:354)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at Main._main(Main.java:344)
	at Main.main(Main.java:160)

The following packages have pending transactions: docker-x86_64

failed: [ip-10-0-0-7.ec2.internal] (item=[u'docker', u'NetworkManager']) => {"changed": false, "item": ["docker", "NetworkManager"], "msg": "The following packages have pending transactions: docker-x86_64", "rc": 128, "results": ["The following packages have pending transactions: docker-x86_64"]}
failed: [ip-10-0-0-5.ec2.internal] (item=[u'docker', u'NetworkManager']) => {"changed": false, "item": ["docker", "NetworkManager"], "msg": "The following packages have pending transactions: docker-x86_64", "rc": 128, "results": ["The following packages have pending transactions: docker-x86_64"]}

Unable to add user to Cluster Admin group

I installed Minishift on Ubuntu 18.04 and started with 10Gb RAM and 4 CPUs. When I try to add cluster-admin role to user I got Error from server (NotFound): the server could not find the requested resource error.

General information

  • Minishift version: minishift v1.21.0+a8c8b37
  • OS: Linux (Ubuntu 18.04)
  • Hypervisor: VirtualBox

Steps to reproduce

1. minishift addons enable xpaas
2. minishift start --memory=10240 --cpus=4 --vm-driver=virtualbox
3. oc adm policy add-cluster-role-to-user cluster-admin \<username> --as=system:admin
4. if above command does not work, execute oc login -u system:admin then oc adm policy add-cluster-role-to-user cluster-admin \<username>

Expected

Cluster admin role added to the user

Actual

Error from server (NotFound): the server could not find the requested resource

Logs

https://gist.github.com/pavankjadda/fe259cf18c39784437b69f1e89f014dd

Docker registry not available

Docker registry is not available after creating pod docker-registry through new deployment and as a result unable to push new and update images to Registry

$sudo docker login -u developer -p $(oc whoami -t) 172.30.175.144:5000

WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: Get https://172.30.175.144:5000/v2/: Service Unavailable```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.