Coder Social home page Coder Social logo

Compute profile creation fails: Oops, we're sorry but something went wrong undefined method `[]' for nil:NilClass about fog-proxmox HOT 6 CLOSED

fog avatar fog commented on September 2, 2024
Compute profile creation fails: Oops, we're sorry but something went wrong undefined method `[]' for nil:NilClass

from fog-proxmox.

Comments (6)

tristanrobert avatar tristanrobert commented on September 2, 2024

Could you show the details you filled in the compute profile form?

from fog-proxmox.

RedChops avatar RedChops commented on September 2, 2024

Might make more sense to type out my changes here rather than a very long screenshot. If I don't note it here, I left it at the default:

Type: KVM/Qemu server

Main options

Qemu Agent: [x]
KVM: [x]

CPU

Cores: 4

Memory

Memory: 8589934592
Minimum memory: 1073741824
Ballooning Device: [x]
(Note: What unit are these memory settings supposed to be? Given the default I assumed bytes, but I also tried megabytes)

Storage

Disk

Storage: ceph
Controller: SCSI (I've tried each of the four: IDE/SATA/SCSI/VirtIO Block)
Device: 0 (Also tried setting this to '1' just to be sure)
Cache: No cache
Size: 34359738368 (Again, given the default I assumed byte, but also tried megabyte)

from fog-proxmox.

tristanrobert avatar tristanrobert commented on September 2, 2024

This issue is relative to foreman_fog_proxmox and not fog_proxmox.
DiskHelper.extract_controller accepts a/(\w+)(\d+)/string id (e.g. scsi0) but it is not.
Sizes must be formatted in text (e.g. 1 Gb) by foreman javascript. But it seems not to.
Have you installed the plugin javascript: /usr/bin/foreman-ruby /usr/bin/bundle exec bin/rake plugin:assets:precompile[foreman_fog_proxmox]?

from fog-proxmox.

RedChops avatar RedChops commented on September 2, 2024

Hm, I lack the foreman-ruby binary, but I do have a foreman-rake binary. After setting proper permissions in the ruby gems folder (foreman-rake su's to foreman user), running /sbin/foreman-rake plugin:assets:precompile[foreman_fog_proxpox], and restarting the foreman service, the javascript formatting you mention now works.

I'm unsure if this is related, but several settings don't seem to 'stick': If I set 4 cores under CPU, 8 Gb for memory, 1 Gb for minimum memory, and check ballooning device, the only setting out of that batch that sticks is the 8 Gb memory setting. All other settings from my above writeup do stick in the configuration.

from fog-proxmox.

tristanrobert avatar tristanrobert commented on September 2, 2024

1- Do you still encounter the error?

2- Could you post another issue in foreman_fog_proxmox related to the server VM settings issue?

from fog-proxmox.

RedChops avatar RedChops commented on September 2, 2024

Sorry yes, this issue has been resolved. With this comment I'll close the issue and open a new one in foreman_fog_proxmox.

For posterity, the tasks that fixed this for me are as follows (since they differ slightly from the instructions in the README.MD file)

  1. sudo chgrp -R foreman /opt/rh/rh-ruby24/root/usr/local/share/gems/gems
  2. sudo chmod g+w /opt/rh/rh-ruby24/root/usr/local/share/gems/gems
  3. sudo foreman-rake plugin:assets:precompile[foreman_fog_proxmox]

from fog-proxmox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.