Git Product home page Git Product logo

ccp-openshift's People

Contributors

bamachrn avatar dharmit avatar mohammedzee1000 avatar navidshaikh avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ccp-openshift's Issues

Facing login issues for newly created user

Deployed a 2 node and 2 master cluster on devcloud and after creating user, I am facing issue with login of newly created user

[root@os-master-1 ~]# oc create user navid
user "navid" created

[root@os-master-1 ~]# htpasswd  /etc/origin/master/htpasswd navid
New password: 
Re-type new password: 
Adding password for user navid

[root@os-master-1 ~]# oc project
Using project "default" on server "https://os-master-1.lon1.centos.org:8443".

[root@os-master-1 ~]# oc get user
NAME      UID                                    FULL NAME   IDENTITIES
navid     14665f4f-9b91-11e8-a081-fa163ee22534               

[root@os-master-1 ~]# hostname
os-master-1.lon1.centos.org

[root@os-master-1 ~]# oc login -u navid os-master-1.lon1.centos.org:8443
Error from server (InternalError): Internal error occurred: unexpected response: 400

This issue is not seen by other devs in team, however I am logging it to make sure we track it.

Deployed, now what?

I've successfully deployed this!

Now I'm looking at the log for Jenkins:

OpenShift Build myproject/seed-job-1 from https://github.com/dharmit/ccp-openshift
Checking out git https://github.com/dharmit/ccp-openshift into /var/lib/jenkins/jobs/myproject/jobs/myproject-seed-job/workspace@script to read seed-job/Jenkinsfile
Cloning the remote Git repository
Cloning repository https://github.com/dharmit/ccp-openshift
 > git init /var/lib/jenkins/jobs/myproject/jobs/myproject-seed-job/workspace@script # timeout=10
Fetching upstream changes from https://github.com/dharmit/ccp-openshift
 > git --version # timeout=10
 > git fetch --tags --progress https://github.com/dharmit/ccp-openshift +refs/heads/*:refs/remotes/origin/*
 > git config remote.origin.url https://github.com/dharmit/ccp-openshift # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://github.com/dharmit/ccp-openshift # timeout=10
Fetching upstream changes from https://github.com/dharmit/ccp-openshift
 > git fetch --tags --progress https://github.com/dharmit/ccp-openshift +refs/heads/*:refs/remotes/origin/*
 > git rev-parse origin/master^{commit} # timeout=10
Checking out Revision cc638a791dd97b53461eadc94e4d0d01753d823e (origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f cc638a791dd97b53461eadc94e4d0d01753d823e
Commit message: "Merge pull request #5 from dharmit/fix-readme-buildtemplate"
First time build. Skipping changelog.
[Pipeline] podTemplate
[Pipeline] {
[Pipeline] node
Still waiting to schedule task
Jenkins doesn’t have label seed-slave

I'm assuming I just push a container to the registry and watch Jenkins build it? What do I do now that it's deployed?

@dharmit

changes required deploying EFK, metrics, prometheus on the cluster

quoting @dharmit 's message in issue to keep track

few things changed when I was deploying EFK, metrics, prometheus on the cluster. Mainly from storage side of things. Please refer this pre-install.yml file

$ cat openshift-cluster/pre-install.yml
---
- hosts: all
  tasks:
      - name: yum update all
        yum: name='*' state=latest
        async: 1000
        poll: 5
 
      - name: reboot the server
        shell: sleep 2 && shutdown -r now
        async: 1
        poll: 0
 
      - name: Wait for server come back
        wait_for: >
             host={{ inventory_hostname }}
             port=22
             delay=15
             timeout=600
        delegate_to: localhost
 
      - name: Copy /etc/hosts
        synchronize: src=/etc/hosts dest=/etc/hosts
        delegate_to: localhost
 
      - name: SELinux permissive
        selinux: policy=targeted state=permissive
 
      - name: Install packages
        yum: package={{ item }} state=latest
        with_items:
            - NetworkManager
            - firewalld
            - python-rhsm-certificates
            - centos-release-openshift-origin39.noarch
            - python-ipaddress
 
      - name: Start services
        systemd: state=started enabled=yes name={{ item }}
        with_items:
            - NetworkManager
            - firewalld
                                       
      - name: Install lvm2
        yum: name=lvm2 state=latest
       
      - name: Run shell commands to use /dev/vdb for /logging
        shell: |                  
            umount /mnt
            wipefs -o 0x52 /dev/vdb
            wipefs -o 0x0 /dev/vdb
            wipefs -o 0x1fe /dev/vdb
            pvcreate /dev/vdb            
            vgcreate devcloud /dev/vdb
            lvcreate -L 25G -n var devcloud
            lvcreate -l 100%FREE -n logging devcloud
            mkfs.ext4 /dev/devcloud/var
            mkfs.ext4 /dev/devcloud/logging
            mount /dev/devcloud/var /mnt  
            rsync -aqxP /var/* /mnt
            mkdir /logging
            chmod 777 /logging
                             
      - name: Remove vdb mount entry
        mount:              
            src: /dev/vdb                          
            path: /mnt        
            state: absent
                               
      - name: Add mount entries                  
        mount:
            src: "{{item.src}}"
            path: "{{item.path}}"          
            fstype: ext4
            state: present  
        with_items:    
          - {src: '/dev/devcloud/var', path: '/var'}
          - {src: '/dev/devcloud/logging', path: '/logging'}
                             
      - name: Reboot nodes
        shell: reboot

It's going to create multiple LVs. One for /var. One for /logging.

But as long as you're not working on deploying logging stacks, you should be fine with old pre-install.yml.

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.