Skip to end of metadata
Go to start of metadata

Here is a link to the moved page on ReadTheDocs

If you have questions, please try the Forum.


26 Comments

  1. Hello, i configured the Build Environment on CentOS 7 and followed the Automated ISO Build. 
    When running step c. , i received these errors.  Could you please help.  Thanks.

    [lthai@build simp-core]$ bundle exec rake build:auto[5.1.0-3,/tmp/RHEL_Build]

    ================================================================================

    ## validating ISOs for target:

          '5.1.0-3' in '/tmp/RHEL_Build'

    ================================================================================

    --------------------------------------------------------------------------------

    ## target data:

         target release: '5.1.0-3'

         target flavor:  'RedHat'

         source isos:

            - /tmp/RHEL_Build/rhel-server-7.2-x86_64-dvd.iso

    --------------------------------------------------------------------------------

    ================================================================================

    ## Checking out subrepositories

         (skip with `SIMP_BUILD_checkout=no`)

    ================================================================================

    Warning: Could not find path for module 'simp_doc'...skipping

    Warning: Could not find path for module 'simp_rsync'...skipping

    Warning: Could not find path for module 'rubygems-simp-cli'...skipping

    Warning: Could not find path for module 'rubygems-simp-rake-helpers'...skipping

    Warning: Could not find path for module 'simp-acpid'...skipping

    Warning: Could not find path for module 'simp-activemq'...skipping

    Warning: Could not find path for module 'simp-aide'...skipping

    Warning: Could not find path for module 'simp-apache'...skipping

    Warning: Could not find path for module 'simp-auditd'...skipping

    Warning: Could not find path for module 'simp-augeasproviders'...skipping

    Warning: Could not find path for module 'simp-augeasproviders_apache'...skipping

    Warning: Could not find path for module 'simp-augeasproviders_base'...skipping

    Warning: Could not find path for module 'simp-augeasproviders_core'...skipping

    Warning: Could not find path for module 'simp-augeasproviders_grub'...skipping

    ................

     Warning: Could not find path for module 'simp-xwindows'...skipping
    Warning: Could not find path for module 'onyxpoint-compliance'...skipping
    No repositories have changes.

    --------------------------------------------------------------------------------
    #### Checking out subrepositories using method 'tracking'
    --------------------------------------------------------------------------------
    bundle exec librarian-puppet-pr328 install --use-forge=false
    Module https://github.com/simp/simp-doc#simp-5.1.X(./src/doc) does not have version, defaulting to 0.0.1
    Module https://github.com/simp/simp-rsync#simp-5.1.X(./src/rsync) does not have version, defaulting to 0.0.1
    Module https://github.com/simp/rubygem-simp-cli#master(./src/rubygems/simp-cli) does not have version, defaulting to 0.0.1
    Module https://github.com/simp/rubygem-simp-rake-helpers#master(./src/rubygems/simp-rake-helpers) does not have version, defaulting to 0.0.1
    Module https://github.com/simp/pupmod-simp-ganglia#master does not have version, defaulting to 0.0.1
    Processing onyxpoint-compliance
    Processing rubygems-simp-cli
    Processing rubygems-simp-rake-helpers
    Processing simp-acpid
    Processing simp-activemq
    .....

    ================================================================================

    #### Running tar:build in all repos

    ================================================================================

    chown -R :mock /home/lthai/simp-core

    mkdir dev

    chmod 700 dev

    Generating new GPG key

    rm -rf pubring.gpg

    rm -rf trustdb.gpg

    chmod 755 run_gpg_agent

    gpg-agent[14538]: directory `/home/lthai/simp-core/build/build_keys/dev/private-keys-v1.d' created

    gpg-agent[14539]: gpg-agent (GnuPG) 2.0.22 started

    gpg --homedir=/home/lthai/simp-core/build/build_keys/dev --batch --gen-key gengpgkey

    gpg: keyring `/home/lthai/simp-core/build/build_keys/dev/secring.gpg' created

    gpg: keyring `/home/lthai/simp-core/build/build_keys/dev/pubring.gpg' created

    gpg: Generating Development GPG Key

    gpg:

    gpg: This key will expire on 2016-06-24T16:07:18-04:00

    gpg:

    ^C

    gpg: signal Interrupt caught ... exiting

    gpg-agent[14539]: SIGTERM received - shutting down ...

    gpg-agent[14539]: gpg-agent (GnuPG) 2.0.22 stopped

    rake aborted!

    Interrupt:

    /home/lthai/.rvm/gems/ruby-2.0.0-p648/gems/simp-rake-helpers-1.3.0/lib/simp/rake/build/pkg.rb:215:in `block (4 levels) in define_tasks'

    /home/lthai/.rvm/gems/ruby-2.0.0-p648/gems/simp-rake-helpers-1.3.0/lib/simp/rake/build/pkg.rb:128:in `chdir'

    /home/lthai/.rvm/gems/ruby-2.0.0-p648/gems/simp-rake-helpers-1.3.0/lib/simp/rake/build/pkg.rb:128:in `block (3 levels) in define_tasks'

    /home/lthai/.rvm/gems/ruby-2.0.0-p648/gems/simp-rake-helpers-1.3.0/lib/simp/rake/build/pkg.rb:120:in `chdir'

    /home/lthai/.rvm/gems/ruby-2.0.0-p648/gems/simp-rake-helpers-1.3.0/lib/simp/rake/build/pkg.rb:120:in `block (2 levels) in define_tasks'

    /home/lthai/.rvm/gems/ruby-2.0.0-p648/gems/simp-rake-helpers-1.3.0/lib/simp/rake/build/auto.rb:193:in `block (2 levels) in define'

    /home/lthai/.rvm/gems/ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in `eval'

    /home/lthai/.rvm/gems/ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in `<main>'

    Tasks: TOP => tar:build => pkg:build => pkg:key_prep

    (See full trace by running task with --trace)

    [lthai@build simp-core]$

     

     

     


    1. Hi Loan,

      This looks OK as far as it goes. The build process is a bit verbose, but so far, that looks like good output until the ^C.

      You'll probably want to run 'rake clobber' before you start again though.

  2. Hi Trevor, thanks for your help.  I will continue the build with your suggestion.

    1. Not a problem. Feel free to hop into our chat room or on the Q&A Board for general questions that might be of interest to others.

  3. Hi Trevor,

    I ran 'rake clobber' but it says:

    rake aborted!

    Exception: You need to be in the 'mock' group.

     

     but, I am pretty sure that I added the user to 'mock' group.

    Do you know why?

    -Will

  4. You need to either use 'newgrp' or log out and back in.

    Make sure the 'mock' group shows up when you run 'id' as your user

    1. It's in the mock group. Just checked. 

      Now if I try to run 'rake clobber' as a normal user, it says permission denied.

      But if I try to run 'sudo rake clobber', it will just say sudo: rake command not found

      and if I try to run 'rake clobber' as root, it shows:

      WARNING: Unable to activate simp-rake-helpers-2.1.3, because rake-11.2.2 conflicts with rake (~> 10.0)

      rake aborted!

      Don't know how to build task 'clobber' (see --tasks)

       

      (See full trace by running task with --trace)

      -Will

  5. This makes sense. Can you run mock by hand?

    Try: mock r epel6-x86_64 --shell
    Also, are you using RVM? If so, Ruby 2.0 or 2.1?
    1. After I run 'mock r epel6-x86_64 --shell', I got this error.

      Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

      ERROR: Command failed. See logs for output.

       # /usr/bin/yum --installroot /var/lib/mock/epel-6-x86_64/root/ --releasever 6 install @buildsys-build --setopt=tsflags=nocontexts

       Yes, I am using RVM and Ruby 2.0.

      -Will

       

  6. That mock command needs to succeed. Can your system connect to the internet and is your DNS working properly?

    1. Yes. I am connected to the internet and DNS is working.

  7. Sorry....I lost a dash in there somewhere.

    Try mock -r epel6-x86_64 --shell.
    1. it still gives me the same error.

       

  8. Apparently, typing is difficult for me today.

    Try:

    mock -r epel-6-x86_64 --shell

    If that doesn't work, look in /etc/mock/epel-6-x86_64.cfg and see if the 'base' repo points somewhere sane.

    1. it still did not work.

      here's what I found in there:

      # repos
      [base]
      name=BaseOS
      enabled=1
      mirrorlist=http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os
      failovermethod=priority
      gpgkey=file:///etc/pki/mock/RPM-GPG-KEY-CentOS-6
      gpgcheck=1

       

      That list of http links are all 6.8. I'm using 6.7.

      Does that have anything to do with it?

  9. Can you reach that mirrorlist URL?

    I've seen issues with mock trying to use the system 'base' repo as well.

    The host OS doesn't matter, that's the main benefit of using mock

    1. It seems like I lost the network on my terminal, but Firefox still works. Let me try to figure out what's going on here.

    2. Thank you for all of your help Trevor. I don't know what's going on with the network connection. I think it's because my system is behind a proxy.

  10. After I build the SIMP iso, where can I locate it?

  11. It will be in the SIMP_ISO directory under your top level simp-core checkout.

  12. I looked in simp-core directory, there's no SIMP_ISO directory.

  13. I have also tried "Building from a tarball release". After it compiled, still no ISO file. Should I make one from the directory?

  14. Was there an error in your run? If the build succeeded, then that's where the ISO would be output.

    You can also check the build/DVD_Overlays directory for the resultant tar files that are used to build the ISO.

  15. Hi Will,

    Would you mind moving this conversation over to the Q&A Board?

    1. I don't mind. How do I do that?

    2. I just ran it again. It built for some reason. Problem solved.