Package backend :: Package satellite_tools :: Module rhn_satellite_activate
[hide private]
[frames] | no frames]

Module rhn_satellite_activate

source code

Classes [hide private]
  CaCertInsertionError
raise when fail to insert CA cert into the local database
  RHNCertGeneralSanityException
general failure
  EnableSatelliteRepositoryException
when there is no attached satellite subscription in rhsm or incorrect combination of rhel and sat version
Functions [hide private]
 
writeError(e) source code
 
getRHSMUuid()
Tries to get UUID of of this system if it's registered into Subscription manager.
source code
 
getCertChecksumString(sat_cert) source code
 
validateSatCert(cert)
validating (i.e., verifing sanity of) this product.
source code
 
writeRhsmManifest(options, manifest) source code
 
storeRhsmManifest(options)
storing of the RHSM manifest writing to default storage location
source code
 
enableSatelliteRepo(rhn_cert) source code
 
expiredYN(cert)
dead simple check to see if our RHN cert is not expired returns either "" or the date of expiration.
source code
 
processCommandline() source code
 
main()
main routine 1 general failure 10 general sanity check failure (to include a remedial cert version check) 11 expired! 12 certificate version fails remedially 13 certificate missing in manifest 14 manifest signature incorrect 15 cannot load mapping files 16 manifest download failed 17 manifest refresh failed 18 manifest entitlements parse failed 30 local activation failure
source code
Variables [hide private]
  cdn_activation = None
hash(x)
  MissingSatelliteCertificateError = None
hash(x)
  ManifestValidationError = None
hash(x)
  CdnMappingsLoadError = None
hash(x)
  DEFAULT_RHSM_MANIFEST_LOCATION = '/etc/sysconfig/rhn/rhsm-mani...
  DEFAULT_WEBAPP_GPG_KEY_RING = '/etc/webapp-keyring.gpg'
  DEFAULT_CONFIG_FILE = '/etc/rhn/rhn.conf'
  DEFAULT_RHSM_CONFIG_FILE = '/etc/rhsm/rhsm.conf'
  SUPPORTED_RHEL_VERSIONS = ['5', '6']
  LOG_PATH = '/var/log/rhn/activation.log'
  __package__ = 'backend.satellite_tools'
Function Details [hide private]

validateSatCert(cert)

source code 

validating (i.e., verifing sanity of) this product. I.e., makes sure the product Certificate is a sane certificate

main()

source code 
main routine
1    general failure
10   general sanity check failure (to include a remedial cert
     version check)
11   expired!
12   certificate version fails remedially
13   certificate missing in manifest
14   manifest signature incorrect
15   cannot load mapping files
16   manifest download failed
17   manifest refresh failed
18   manifest entitlements parse failed
30   local activation failure

90   not registered to rhsm
91   enabling sat repo failed

127  general unknown failure (not really mapped yet)

FIXME - need to redo how we process error codes - very manual


Variables Details [hide private]

DEFAULT_RHSM_MANIFEST_LOCATION

Value:
'/etc/sysconfig/rhn/rhsm-manifest.zip'