Difference between revisions of "Chg-git"

From CHG-Wiki
Jump to navigationJump to search
m
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
chg-git is the CHG [[Sysadm:GitLab|GitLab]] server (to be shared with EROS) as well as a "staging server" for the Unix port of [[EWX]]. Originally the image name for this VM was chg-git.img, but after attempts to wipe and reinstall failed, the image name was changed to chg-gitl.img. The hostname (and everything else) remains the same. The chg-gitl.img is a graphical installation, so use virt-manager to access the console.
+
chg-git is the CHG [[Sysadm:GitLab|GitLab]] server (to be shared with EROS). The hostname (and everything else) remains the same. The chg-git.img is a graphical installation, so use virt-manager to access the console.
  
 
==General Info==
 
==General Info==
 
{| class="wikitable"
 
{| class="wikitable"
 
! System Name:  
 
! System Name:  
|align="right"|chg-git.geog.ucsb.edu
+
|align="right"|chg-git.chg.ucsb.edu
 
|-
 
|-
 
! IP:  
 
! IP:  
|align="right"|128.111.234.247
+
|align="right"|128.111.236.141 <!--used to be 234.247-->
 
|-
 
|-
 
! Location:  
 
! Location:  
|align="right"| [[rain]]
+
|align="right"| [[roi]]
 
|-
 
|-
 
! General Purpose:  
 
! General Purpose:  
|align="right"|[[Sysadm:GitLab|GitLab]] server and [[EWX]] staging server
+
|align="right"|[[Sysadm:GitLab|GitLab]] server
 
|-
 
|-
 
! Creation Date:  
 
! Creation Date:  
Line 21: Line 21:
 
==System Configuration==
 
==System Configuration==
 
*OS Type: Unix
 
*OS Type: Unix
*OS Version: Ubuntu 12.04.5 LTS (Precise [http://isafari.nathab.com/system/landing_page/image/52/large_Baby-Pangs-on-the-rocks-Christian-Boix.jpg Pangolin])
+
*OS Version: 14.04.5 LTS
 
*vCPUS: 2 allocated
 
*vCPUS: 2 allocated
  
Line 33: Line 33:
 
==Services==
 
==Services==
 
*[[Sysadm:GitLab|GitLab]] server
 
*[[Sysadm:GitLab|GitLab]] server
*[[EWX]] Unix port "staging" server
 
 
==Notes==
 
*Added ERI user 02/02/2015
 
  
 
===Starting and Stopping Services===
 
===Starting and Stopping Services===
GitLab can be controlled with:
+
See [[Sysadm:GitLab#Starting_and_Stopping_Services | GitLab: Starting_and_Stopping_Services]]
sudo gitlab stop
 
sudo gitlab start
 
sudo gitlab restart
 
nginx must be controlled separately with:
 
sudo nginx stop
 
sudo nginx start
 
sudo nginx restart
 
  
 
===nginx configuration===
 
===nginx configuration===
nginx has a primary configuration file at:
+
See [[Sysadm:GitLab#nginx_configuration | GitLab: nginx_configuration]]
  /etc/nginx/nginx.conf
+
 
This file imports additional configuration files found in:
+
 
  /etc/nginx/sites-enabled/
+
==Notes==
In order to increase the maximum upload size of files pushed to the server, the following line was added to the http directive of the primary configuration file:
+
*Domain named changed from geog.ucsb.edu to chg.ucsb.edu (can also be reached at [http://git.chg.ucsb.edu git.chg.ucsb.edu]) as of November 23rd, 2015.
client_max_body_size 1024M;
+
*Added ERI user 02/02/2015
 +
*After blowing away the original Windows Server 2008 R2 installation, the VM was briefly called chg-gitl, but was changed back to chg-git by:
 +
On rain
 +
  [root@rain ~]$ cd /var/run/libvirt/qemu
 +
[root@rain qemu]$ virsh dumpxml [domain] > foo.xml
 +
Shut down VM, preferably from within the VM
 +
chgadmin@chg-git:~$ sudo shutdown -h now
 +
back on rain
 +
[root@rain qemu]$ cp foo.xml chg-git.xml
 +
  [root@rain qemu]$ vib chg-git.xml    #(change name IN TWO PLACES)
 +
[root@rain qemu]$ virsh undefine chg-gitl
 +
[root@rain qemu]$ cd /var/lib/libvirt/images
 +
[root@rain qemu]$ cp chg-gitl.img chg-git.img
 +
[root@rain qemu]$ cd /var/run/libvirt/qemu
 +
[root@rain qemu]$ virsh define chg-git.xml
 +
Deleted chg-gitl.img once chg-git was confirmed up and running.
 +
*Originally, chg-git was also going to double as a staging server for [[EWX]], but later (June 2015) Greg Ederer requested a clone of the CentOS chg-ewx system be created instead ([[chg-ewxtest]]). [[chg-ewxtest]] also lives on ubu, in the same location (/raid).
 +
*Jenkins updated on June 14, 2016 (see [https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu the Jenkins wiki] for notes). Jenkins was removed in late 2017 when [[marty]] confirmed that Jenkins was not being used (a security flaw in Jenkins prompted review of the installation).
 +
*OS upgraded from Precise Pangolin (12) on June 20th, 2017.
  
 
==virsh dominfo==
 
==virsh dominfo==
 
<pre>
 
<pre>
[root@rain images]# virsh dominfo chg-gitl
+
[root@roi ~]# virsh dominfo chg-git
Id:            44
+
Id:            5
Name:          chg-gitl
+
Name:          chg-git
 
UUID:          965d9c28-9610-0b91-9e01-8ab7640869bf
 
UUID:          965d9c28-9610-0b91-9e01-8ab7640869bf
 
OS Type:        hvm
 
OS Type:        hvm
 
State:          running
 
State:          running
 
CPU(s):        2
 
CPU(s):        2
CPU time:      59.5s
+
CPU time:      56451.2s
 
Max memory:    33554432 KiB
 
Max memory:    33554432 KiB
 
Used memory:    33554432 KiB
 
Used memory:    33554432 KiB
Line 73: Line 80:
 
Security model: selinux
 
Security model: selinux
 
Security DOI:  0
 
Security DOI:  0
Security label: unconfined_u:system_r:svirt_t:s0:c11,c989 (enforcing)
+
Security label: system_u:system_r:svirt_t:s0:c249,c580 (enforcing)
 
</pre>
 
</pre>
  
 
[[Category:Hosts|{{PAGENAME}}]]
 
[[Category:Hosts|{{PAGENAME}}]]
 +
[[Category:VMs|{{PAGENAME}}]]

Latest revision as of 16:16, 10 April 2018

chg-git is the CHG GitLab server (to be shared with EROS). The hostname (and everything else) remains the same. The chg-git.img is a graphical installation, so use virt-manager to access the console.

General Info

System Name: chg-git.chg.ucsb.edu
IP: 128.111.236.141
Location: roi
General Purpose: GitLab server
Creation Date: October 28, 2014

System Configuration

  • OS Type: Unix
  • OS Version: 14.04.5 LTS
  • vCPUS: 2 allocated

Network

  • MAC Address: 52:54:00:ed:6d:cd (generated)

Storage

  • Memory: 32GB allocated
  • Size: 50GB allocated

Services

Starting and Stopping Services

See GitLab: Starting_and_Stopping_Services

nginx configuration

See GitLab: nginx_configuration


Notes

  • Domain named changed from geog.ucsb.edu to chg.ucsb.edu (can also be reached at git.chg.ucsb.edu) as of November 23rd, 2015.
  • Added ERI user 02/02/2015
  • After blowing away the original Windows Server 2008 R2 installation, the VM was briefly called chg-gitl, but was changed back to chg-git by:

On rain

[root@rain ~]$ cd /var/run/libvirt/qemu
[root@rain qemu]$ virsh dumpxml [domain] > foo.xml

Shut down VM, preferably from within the VM

chgadmin@chg-git:~$ sudo shutdown -h now

back on rain

[root@rain qemu]$ cp foo.xml chg-git.xml
[root@rain qemu]$ vib chg-git.xml     #(change name IN TWO PLACES)
[root@rain qemu]$ virsh undefine chg-gitl
[root@rain qemu]$ cd /var/lib/libvirt/images
[root@rain qemu]$ cp chg-gitl.img chg-git.img
[root@rain qemu]$ cd /var/run/libvirt/qemu
[root@rain qemu]$ virsh define chg-git.xml

Deleted chg-gitl.img once chg-git was confirmed up and running.

  • Originally, chg-git was also going to double as a staging server for EWX, but later (June 2015) Greg Ederer requested a clone of the CentOS chg-ewx system be created instead (chg-ewxtest). chg-ewxtest also lives on ubu, in the same location (/raid).
  • Jenkins updated on June 14, 2016 (see the Jenkins wiki for notes). Jenkins was removed in late 2017 when marty confirmed that Jenkins was not being used (a security flaw in Jenkins prompted review of the installation).
  • OS upgraded from Precise Pangolin (12) on June 20th, 2017.

virsh dominfo

[root@roi ~]# virsh dominfo chg-git
Id:             5
Name:           chg-git
UUID:           965d9c28-9610-0b91-9e01-8ab7640869bf
OS Type:        hvm
State:          running
CPU(s):         2
CPU time:       56451.2s
Max memory:     33554432 KiB
Used memory:    33554432 KiB
Persistent:     yes
Autostart:      enable
Managed save:   no
Security model: selinux
Security DOI:   0
Security label: system_u:system_r:svirt_t:s0:c249,c580 (enforcing)