Difference between revisions of "Obsolete Service/obs"

From Sugar Labs
Jump to navigation Jump to search
m (Bernie moved page Service/obs to Obsolete Service/obs)
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{Obsolete}}
 +
 
== Hostnames ==
 
== Hostnames ==
  
* bazaar.sugarlabs.org
+
* obs.sugarlabs.org
 +
* packages.sugarlabs.org
 +
* sweets.sugarlabs.org
  
 
== Hosted on ==
 
== Hosted on ==
Line 9: Line 13:
 
== Administrative contact ==
 
== Administrative contact ==
  
* bazaar AT sugarlabs DOT org
+
* obs AT sugarlabs DOT org
  
 
== Sysadmins ==
 
== Sysadmins ==
Line 22: Line 26:
 
|-
 
|-
 
!scope="row" | Home
 
!scope="row" | Home
|{{Code|/srv/bazaar}}
+
|{{Code|/srv/obs}}
 +
|-
 +
!scope="row" | Daemon
 +
|
 +
{{Code|/etc/init.d/obs}}<br>
 +
{{Code|/etc/init.d/obs-worker}}
 +
|-
 +
!scope="row" | Config
 +
|
 +
{{Code|/srv/obs/app/src/backend/BSConfig.pm}}<br>
 +
{{Code|/srv/obs/app/src/api/config/}}<br>
 +
{{Code|/srv/obs/app/src/webui/config/}}
 
|-
 
|-
 
!scope="row" | Logs
 
!scope="row" | Logs
|{{Code|/srv/bazaar/site/log}}
+
|{{Code|/srv/obs/site/log}}
 +
|-
 +
!scope="row" | SSL certificates
 +
|
 +
{{Code|/etc/ssl/private/obs.sugarlabs.org.key}}<br>
 +
{{Code|/etc/ssl/certs/obs.sugarlabs.org.pem}}<br>
 +
{{Code|/etc/ssl/private/packages.sugarlabs.org.key}}<br>
 +
{{Code|/etc/ssl/certs/packages.sugarlabs.org.pem}}<br>
 
|-
 
|-
 
|}
 
|}
 +
 +
{{Note/warning|Caution|Since python OBS clients can't handle SNI, default vhost needs to provide {{Code|obs.sugarlabs.org}} SSL certificate.}}
  
 
== Upgrade notes ==
 
== Upgrade notes ==
  
No need in manual configuration, all happens via [[Infrastructure_Team/Puppet|Puppet]] [http://git.sugarlabs.org/projects/puppet-bazaar module].
+
{| class="wikitable"
 +
!scope="row" | git
 +
|
 +
{{Code|/srv/obs/app}}
 +
|-
 +
|}
 +
 
 +
Packages:
 +
 
 +
apt-get install liblocal-lib-perl libio-compress-perl libnet-ssleay-perl createrepo cmake librpm-dev check
 +
 
 +
Gems:
 +
 
 +
su - obs
 +
cd ~/app/src/api
 +
rake gems:install
 +
 
 +
Perl modules:
 +
cpan -i Socket/MsgHdr.pm
 +
 
 +
Build sat-solver:
 +
 
 +
su - obs
 +
cd ~/app/src/backend/sat-solver
 +
cmake . -DMULTI_SEMANTICS=1
 +
make
 +
 
 +
Build BSSolv:
 +
 
 +
su - obs
 +
cd ~/app/src/backend
 +
perl Makefile.PL
 +
make
 +
 
 +
== Hints ==
 +
 
 +
Delete download repository copies:
 +
 
 +
repos={}; Download.find_each {|i| repos[i.metafile] = [(repos.include?(i.metafile) ? repos[i.metafile] : 0), i.id].max}; Download.find_each {|i| i.delete if i.id != repos[i.metafile]}

Latest revision as of 08:14, 31 March 2024

Stop hand.png NOTE:
The content of this page is considered
DEPRECATED and OBSOLETE
It is preserved for historical research, along with its talk page.


Hostnames

  • obs.sugarlabs.org
  • packages.sugarlabs.org
  • sweets.sugarlabs.org

Hosted on

Machine/jita

Administrative contact

  • obs AT sugarlabs DOT org

Sysadmins

Notes

OBS instance with sugar related changes.

Home /srv/obs
Daemon

/etc/init.d/obs
/etc/init.d/obs-worker

Config

/srv/obs/app/src/backend/BSConfig.pm
/srv/obs/app/src/api/config/
/srv/obs/app/src/webui/config/

Logs /srv/obs/site/log
SSL certificates

/etc/ssl/private/obs.sugarlabs.org.key
/etc/ssl/certs/obs.sugarlabs.org.pem
/etc/ssl/private/packages.sugarlabs.org.key
/etc/ssl/certs/packages.sugarlabs.org.pem

Warning.png
Caution
Since python OBS clients can't handle SNI, default vhost needs to provide obs.sugarlabs.org SSL certificate.

Upgrade notes

git

/srv/obs/app

Packages:

apt-get install liblocal-lib-perl libio-compress-perl libnet-ssleay-perl createrepo cmake librpm-dev check

Gems:

su - obs
cd ~/app/src/api
rake gems:install

Perl modules:

cpan -i Socket/MsgHdr.pm

Build sat-solver:

su - obs
cd ~/app/src/backend/sat-solver
cmake . -DMULTI_SEMANTICS=1
make

Build BSSolv:

su - obs
cd ~/app/src/backend
perl Makefile.PL
make

Hints

Delete download repository copies:

repos={}; Download.find_each {|i| repos[i.metafile] = [(repos.include?(i.metafile) ? repos[i.metafile] : 0), i.id].max}; Download.find_each {|i| i.delete if i.id != repos[i.metafile]}