Code Monkey home page Code Monkey logo

crowbar-core's People

Contributors

aplanas avatar aspiers avatar bkutil avatar bmwiedemann avatar clement-jim avatar dirkmueller avatar dpaterson avatar emptyflask avatar galthaus avatar iartarisi avatar jdsn avatar jpascal avatar jsuchome avatar maximilianmeister avatar mjura avatar mmnelemane avatar nicolasbock avatar ociuhandu avatar raajeev avatar rhafer avatar rsalevsky avatar saschpe avatar tboerger avatar thutterer avatar toabctl avatar tserong avatar tsipa avatar victorlowther avatar vuntz avatar waynepallen avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

davidrabel-b1

crowbar-core's Issues

Preallocation IPs for hosts do not work with crowbarctl

we tried to preallocate an IP address with:

crowbarctl network hostip allocate PROPOSAL NODE NETWORK RANGE [SUGGESTION]

but it ignored our IP address "SUGGESTION" (IP was not used at all)

example:

crowbarctl network hostip allocate default d00-25-b5-42-50-01.cc-ap-cn-100.cloud.sap storage host 192.168.128.15
{
  "conduit": "intf1",
  "vlan": 412,
  "use_vlan": true,
  "add_bridge": false,
  "mtu": 1500,
  "subnet": "192.168.128.0",
  "netmask": "255.255.255.0",
  "broadcast": "192.168.128.255",
  "ranges": {
    "host": {
      "start": "192.168.128.4",
      "end": "192.168.128.126"
    }
  },
  "router": "192.168.128.1",
  "usage": "storage",
  "node": "d00-25-b5-42-50-01.cc-ap-cn-100.cloud.sap",
  "address": "192.168.128.4"
}

Proposals created through UI and cli differ

hi. following problem: if one creates a proposal with crowbarctl proposal create $barclamp default, than the "deployment:config:environment" values is "$barclamp-base-config". if one creates the proposal via the web UI, the value is "$barclamp-config-default". with "$barclamp-base-config" the deployment of the proposal fails hard

the issue that you get difference json files if you use the crowbarctl cli vs web UI

backup upload fails

root@crowbar:~ # crowbarctl backup upload kkk
{"error":"A required parameter is missing"}

In the logs:

I, [2017-07-11T08:29:14.308477 #7692:0x007f810d4048c8]  INFO -- Started POST "/utils/backups/upload" for 127.0.0.1 at 2017-07-11 08:29:14 +0000
I, [2017-07-11T08:29:14.309598 #7692:0x007f810d4048c8]  INFO -- Processing by BackupsController#upload as JSON
I, [2017-07-11T08:29:14.309718 #7692:0x007f810d4048c8]  INFO --   Parameters: {"backup"=>{"file"=>#<ActionDispatch::Http::UploadedFile:0x007f810dc60a30 @tempfile=#<Tempfile:/opt/dell/crowbar_framework/tmp/RackMultipart20170711-7692-1kle4ph>, @original_filename="kkk", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"backup[file]\"; filename=\"kkk\"\r\nContent-Type: text/plain\r\n">}}
W, [2017-07-11T08:29:14.310127 #7692:0x007f810d4048c8]  WARN -- param is missing or the value is empty: payload
I, [2017-07-11T08:29:14.310572 #7692:0x007f810d4048c8]  INFO -- Completed 406 Not Acceptable in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)

Forgotten nodes are still referenced in proposals

This creates some confusion, and can also lead to errors (when not using the webui when applying a proposal, since only the webui will remove the node automatically).

The Pull request that fixes this issue is here: #36

  • tested
  • reviewed by SUSE
  • reviewed by SAP

Monitor /var/log/chef/client.log on admin server for errors

We see this:

[2017-05-04T15:38:39+00:00] INFO: HTTP Request Returned 500 Internal Server Error: end of file reached
[2017-05-04T15:38:39+00:00] ERROR: Running exception handlers
[2017-05-04T15:38:40+00:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2017-05-04T15:38:40+00:00] ERROR: Exception handlers complete
[2017-05-04T15:38:40+00:00] ERROR: Net::HTTPFatalError: 500 "Internal Server Error"
[2017-05-04T15:38:40+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2017-05-04T15:38:40+00:00] ERROR: Sleeping for 10800 seconds before trying again

There's an issue for 5 days due to the couchdb database being too big, and it got only noticed now. There should be some monitoring for chef errors that may indicate something really bad. Doing it only on the admin server would be good enough.

Add progress report for "apply"

It's important to know what batches have been applied, and in each batch, what nodes have been successfully configured.

This could be in a separate log file as a first step.

Circular dependency between wickedd and openvswitch

When rebooting network nodes, they come up without network connection.

The problem: Start of wickedd depends on a running openvswitch. openvswitch needs bond0 to start. But bond0 is being created by wickedd. No bond0 = no openvswitch = no wickedd = no bond0.

The Pull request that fixes this issue is here: #27

  • tested
  • reviewed by SUSE
  • reviewed by SAP

Feature Request: DNS barclamp - do not touch all nodes, when not required

There are some DNS barclamp attributes, that only require changes on the DNS server nodes, not on the DNS clients, e.g. the forwarders.
When applying the DNS proposal it should determine, if it is enough to only run chef on the DNS servers or if really all nodes need to be touched, which takes a huge amount of time.

DHCP not working

DHCP is not working between Cassandra node and Admin node. Cassandra requests a DHCP offer from the admin node, but the admin node ignores the request. See attached pcap file.
dhcp-bootp.pcap.zip

Forget nodes does not remove them from all proposals

We forgot nodes, that were in state 'Discovered' and they were still in the network proposal, which prevents us loading the proposal from file, without removing them one by one, reported from the error log.

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.