#crowbar

/

      • plinnell joined the channel
      • jgalvez has quit
      • jgalvez joined the channel
      • alexpilotti has quit
      • alexpilotti joined the channel
      • alexpilotti has quit
      • shausy joined the channel
      • nkrinner joined the channel
      • kirves joined the channel
      • kirves has quit
      • kirves joined the channel
      • kirves has quit
      • kirves joined the channel
      • jgalvez has quit
      • jgalvez joined the channel
      • jgalvez has quit
      • shausy has quit
      • shausy joined the channel
      • shausy has quit
      • shausy joined the channel
      • alexpilotti joined the channel
      • kirves
        tboerger: did you want feedbacks about building roxy on ubuntu? I know what might be the error but honestly I don't know how to fix in an elegant way.
      • tboerger
        kirves: sure
      • kirves: still failing?
      • ogzy
        kirves: i built with changing the rails configs to 2.3.17
      • kirves: it was succesfull
      • tboerger
        ogzy: and it works?
      • kirves
        Yup, gimme a sec and I'll try to explain what the problem seems to be
      • ogzy: build is successful, installation is not
      • tboerger
        do you want to create a pull request? :)
      • ogzy
        tboerger: yeah but after the installation some gems are missing
      • tboerger
        hum... maybe some of the bootstrap related are missing? let me check...
      • kirves
        No, the problem is the rake db:sessions:create and rake db:migrate
      • tboerger
        kirves: where?
      • kirves
        Let me get the right line in the source file
      • brb
      • ogzy
        kirves: it stucks at the barclamp installation but when you go to /opt/dell/crowbar_framework/ and run rake gems:install it continues
      • tboerger
        hum... thinking about where it should be set within ubuntu build process
      • ogzy
        tboerger: also sqlite3 gem is missing after the installation, these are what i discovered from the production.log
      • tboerger
        i will take a look at the missing gems within crowbar.yml
      • that should get fixed quite easy like the rails version mismatch
      • ogzy
        tboerger: where do you build crowbar?and why is the documentation cover only ubuntu?
      • tboerger
        got to finalize my tests on software raid first... afterwards i can take a look at it ;)
      • ogzy
        tboerger: it is clear that it does not work as documented
      • kirves
      • tboerger
        ogzy: i've got only a development environment. everything else is packaged by our jenkins.
      • kirves
        Line 370
      • That line fails (also, /usr/local/bin/rake is version 10.x.x and does not work) while /usr/bin/rake is version 8.2.2 and works
      • tboerger
        kirves: and there is a problem with this call?
      • hum...
      • kirves
        Sorry, forgot to mention: rails is still missing at that point
      • And even if it has it, it uses the wrong rake bin
      • But at that point it has permission issues on /var/log/crowbar/*
      • tboerger
        than there should be something bad within the install-chef script -.-
      • we are using https://github.com/crowbar/crowbar/blob/master/... because we are building on suse only
      • kirves
        Yup, looks like it
      • tboerger
        i hope we get up some automated testing for ubuntu too
      • kirves
        I'll try and diff the files to see if something is different between the two
      • Something I can fix, I hope
      • ogzy
        tboerger: when i check the production.log i was seeing some missing gems which are already mentioned at the Rakefile under /opt/dell/crowbar_framework
      • kirves
        ogzy: true, you can solve it by running rake gem:install in the crowbar_framework dir. But indeed, you're right
      • tboerger
        the missing gems can get fixed quite easy
      • i try to create a pull request today
      • ogzy
        tboerger: i did, i also gem install sqlite not i can see crowbar ui but with a 500 error page
      • kirves
        ogzy: try "bluepill chef-server restart" and "bluepill crowbar-webserver restart"
      • It should work, bring up the environment and fail the node deletion tests
      • ogzy
        kirves: still same page saying something went wrong
      • kirves: ActiveRecord::StatementInvalid (Could not find table 'sessions'): need to create the db it seems, better to edit the line 370 and retry installation it seems
      • kirves
        Oh, k, it was the rake tasks going wrong
      • just to be sure, rake -V
      • and which rake
      • ogzy
        kirves: rake, version 10.1.1
      • alexpilotti has quit
      • kirves: /usr/local/bin/rake
      • kirves
        ok, /usr/bin/rake -V
      • ogzy
        kirves: and yours?
      • kirves
        same as you, you should force /usr/bin/rake instead of /usr/local/bin/rake
      • ogzy
        kirves: lets see whether reinstalling works
      • kirves
        It won't, I had to link /usr/local/bin/rake to /usr/bin/rake to get beyond that step
      • ogzy
        kirves: ok i am doing that also
      • tboerger
        where did the /usr/local/bin/rake come from? oO
      • ogzy
        kirves: rake, version 0.9.2.2 for /usr/bin/rake -V
      • kirves
        ok
      • tboerger: I don't know :D
      • ogzy
        kirves: and you restart chef*server and crowbar-webserver?
      • kirves
        it rake db:migrate works
      • if*
      • ogzy
        kirves: where do you run rake db:migrate?
      • kirves
        In /opt/dell/crowbar_framework
      • ogzy
        kirves:
      • rake aborted!
      • undefined method `task'
      • tboerger: /usr/local/bin/rake it does not coming via apt, i checked with dpkg -S no result returned
      • kirves
        ogzy: did you run /usr/bin/rake?
      • tboerger: I really don't know where it comes from :D
      • ogzy
        tboerger: what should be the rake version while running rake db:migrate?
      • kirves: i run but still 500 error page
      • kirves
        I must be forgetting something then, try and check the logs
      • [1]Mr_D joined the channel
      • alexpilotti joined the channel
      • ogzy
        kirves: unable to connect to node rabbit@crowbar
      • kirves
        o_O
      • Never seen that. Did you use crowbar as you FQDN?
      • ogzy
        kirves: no
      • kirves
        Really, I've never seen that error message :/
      • ogzy
        kirves: can you check your history about what you did except from db:migrate
      • kirves
        I did nothing on the admin node: I modified the install-chef.sh file and rebuild the iso every time
      • So I don't have any history
      • ogzy
        oh
      • kirves: you changed the 2-370 line only?
      • kirves: 370 sorry
      • kirves
        Added something and removed something else to make rake work. However do not expect evrything to work flawlessly after that
      • Around that line, yes
      • ogzy
        kirves: is it a secret :)
      • kirves
        Nope, it's not a secret: it's exactly what you're doing now on the admin node. I made so many modifications to that script that it became a mess and decided to start from scratch
      • So I don't have that anymore
      • ogzy
        kirves: ok, do you remember whether rake command is working when the script comes at line 370?
      • kirves
        It doesn't work since it uses the wrong rake bin and at that point it is still missing libsqlite-dev (apt) and some gems (rake gems:install)
      • tboerger
        how did you guys build and test the ubuntu stuff?
      • ogzy
        tboerger: i can share my build stuff
      • tboerger
        ogzy: do that please... never tried to build and iso :)
      • may be i can fix the bad stuff easily that you guys can start on roxy :)
      • ogzy
        tboerger: ok doing now, lets solve this ubuntu issue, i am getting sick of these problems
      • tboerger
        and than i can port it directly to stoney too
      • but i think i cant solve it until monday
      • kirves
        tboerger: what do tou mean how we built and test the ubuntu stuff? I followed the guide on github and tested on a dedicated VM
      • tboerger
        kirves: as i said, i never tried anything in the direction of ubuntu or building iso on my own
      • i always used only the suse way and working directly in the github repos with a pretty complicated setup.
      • kirves
        Oh, I thought it was pretty similar, sorry :)
      • tboerger
        suse way is simply install the packages and execute the install chef suse script. and github way is based on a prebuilt image where i execute install suse chef. so it's pretty different for me :D
      • ogzy
      • tboerger: just one thing, you may not need to copt tftpboot, this time i see a tftpboot created so check whether a directory under .crowbar-cache-dir is created after sledgehammer
      • tboerger: any documentation for suse way by the way?
      • tboerger: will be happy if we solve the built issue for ubuntu
      • tboerger
        for my suse setup no open documentation... event the rpm repos are not available in the public -.-
      • ogzy
        tboerger: some documentation is written here also which may help: http://www.yet.org/2013/11/crowbar-build-iso/
      • tboerger
        i think i can dive into that a little bit after the weekend
      • ogzy
        tboerger: i can give a hand if you need
      • tboerger: the order of scripts, pre, git and iso .sh, i assume you got what they do
      • tboerger: oguz is the user at my system
      • tboerger
        yeah, i will dive in on monday
      • if something is unclear i will ping you :)
      • ogzy
        tboerger: dell_bios_roxy i already kept the bios files downloded so just copying them eitherwise it download 2GB exe
      • tboerger: great
      • tboerger
      • ogzy
        so we need to rebuild the iso now :)
      • tboerger: it is not merged yet right?
      • cloudsleuth has quit
      • nkrinner has quit
      • shausy has quit