Tuesday, March 22, 2016

Users and groups on the Linux

Hi all, today I want to take some timeout from Openstack and explain a little bit about managing linux groups and users.

Agenda:
    - Group management (groupaadd, groupdel)
    - User management (useradd, userdel, usermod)
    - How to assign password to user (passwd)
    - How to force user to change password on next login



Group management:
   
          1. create new group:   # groupadd new-1
          2. check created group under /etc/group
              output is:
                                         new-1:x:1001:
                                              |            |
                                          name       id

           3. delete group: # groupdel new-1


User managment:
            
           1. Add new user: # useradd -u 2000 -g 1001 user1   -d /home/user1  -s /bin/bash
                                                              |              |            |                    |                   |               
                                                            uid       primary    new             home            shell 
                                                                       group id    name         directory


           2. For checking new user see  /etc/passwd
               output is:
                                          user:x:2000:1001::/home/user:/bin/bash
                                             |           |       |               |                |
                                         name    user group      home        shell 
                                                        id      id        directory


             Exist few types of groups:
                       1. Primary - default user group where user will create files etc.
                       2. Secondary - you can add any group, so user will have any access from                                                      these groups              

            3. For modification user use: # usermod -u 2001 user1 etc...
                or for adding additional (secondary groups use) # usermod -G www,ftp user1

            4. For removing user use # userdel -r user1 (-r remove home directory)

            5. Exist option lock/unlock user, locked user cant login:
                                      # usermod -L user1 - locked
                                      # usermod -U user1 - unlocked 


 
How to assign password to user (passwd):

            There are 2 ways:

            1. # passwd user

            2. If you want see pass you typed, use: # echo 'password' | passwd --stdin user 


How to force user to change password on next login
             1. #chage -d 0 user  - changing password in the next login

             2. # chage -M 10 user - changing password each 10 days
             3. # chage -l user - all information about user password
                                          or
                 /etc/shadow 



Wednesday, March 16, 2016

Integration EMC ScaleIO storage with Mirantis Openstack Fuel 7.0

Text here

Deployment Openstack Kilo using Mirantis Fuel 7.0 on the vMware environment.

Today we will deploy Mirantis Fuel 7.0 with 3 nodes Openstack cluster.

  1. On the vCenter must be configured cluster with DRS enabled:
    
  
  2. Vmware networks configuration
     a. Configure port group Public (this pg have to get Internet access)
    
   
     b. Management network for internal use
     

    c. Storage network for internal use
    

     d. Private network for internal use, need to configure as trunk
    

     e. PXE network for internal pxe use
    

3. Deployment Mirantis templates for vmware
        
    a. Download vApp image from this link:
            https://content.mirantis.com/vmware-vapp-download-landing-page-thank-you-page.html

        If you are working on EMC, take .ova template from this path:
            \\vm-fbu-3\emc\flash\shared\Installs\Openstack\Mirantis\Mirantis Openstack.ova


     b. For each node except Fuel Master, change RAM to 8G or 16
     c.  Attach to Fuel Master iso image with needed version.
       for version 7, take iso from here:
               https://software.mirantis.com/openstack-download-form/
                                                         or for EMC employes:
                 \\vm-fbu-3\emc\flash\shared\Installs\Openstack\Mirantis\MirantisOpenStack-7.0.iso 

 4. Fuel installation


1.    Start Fuel Master
2.    Configure your Fuel Master setting, for each configuration make Check

a. Set fuel password          

                 b. Network configuration
             

                    

                    c. Change DNS and check that he resolve
                

                d. Set new root password for fuel node
            

                    e. Set and check NTP server (it’s important)
                    
               
                  f. Save and quit
             

                Installation will take 15-20 minutes, don’t abort
                   After finish, connect via browser to your eth1 address.
                   Like: https://10.136.220.6:8443/


     5. Adding nodes to Fuel Master
      
        Switch on all your mos-child-# nodes, they will do PXE booting from Fuel Master, after 5-10               minutes you will see them into your Fuel dashboard:

      


    6. Configuration OpenStack environment
          a. Create new environment via GUI
          

          b. Add nodes (1 controller and 2 compute nodes all with Cinder)
        

       c. For all nodes configure interfaces like:
                      

           d. Configure Networks
       
        
          
         

         e. Configure settings, change just access password
            f. Configure VMware settings like

            

          h. Deploy Openstack
                

          Deployment will take ~ 2 hours (pray....)