Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Matthew Frost
    @mattronix
    thinking may be best to strip it back to minimal
    but that would mean we cant show all the info we have to customer
    load 20 is pretty high
    Matthew Frost
    @mattronix
    sseems the API Returns a 500 error when a node cant be found
    version 12
    Francois Armand
    @fanf
    @mattronix : hum yes, you asked details for a non existing nodes. 404 would be better perhaps
    Matthew Frost
    @mattronix
    yes indeed
    but i would expect a 404
    not a 500
    500 = internal server error
    im trying to use the status to delete a node if it does not exist
    in our portal
    not in rudder
    The HyperText Transfer Protocol (HTTP) 500 Internal Server Error server error response code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request. This error response is a generic "catch-all"
    Francois Armand
    @fanf
    @mattronix: we cleaned up that in next patch version, https://issues.rudder.io/issues/18035: you will be able to just call delete, and rudder will delete it if exists (and does nothing else)
    Matthew Frost
    @mattronix
    nice
    but i also need a way to know for my application
    so if its gone in rudder
    i get 404 and delete in my porta
    portal*
    for example
    Francois Armand
    @fanf
    in 6.2.0, you have a "status" API that does exactly that
    :)
    Matthew Frost
    @mattronix
    awesome :)
    !
    Francois Armand
    @fanf
    but I understand it doesn't help present use case
    I can't make it a 404 for next 6.1 patch release though
    (and in the middle time, I fear you will have to regex match on the horrible, non-sensible message about node not found in removed nodes)
    Francois Armand
    @fanf
    Matthew Frost
    @mattronix
    np
    Matthew Frost
    @mattronix
    my api problem is indeed the full data
    very slow when getting full
    but i want the system inventory and extended node properties
    things like PID i dont really care about
    anyway to go that route?
    i see i am blind
    default may do the job
    Francois Armand
    @fanf
    @mattronix : nodes?include=minimal,properties,cpu etc
    Suvi
    @Suvi8

    Hello guys,
    A question about the conditions in technique editor:

    How can i make a condition for example NOT_Success or NOT_Repaired?

    How to use AND / OR / NOR / NOT

    Alexis Mousset
    @amousset
    . for and, | for or, ( ) for grouping
    Suvi
    @Suvi8
    Thanks Alexis, but if i want a condition for example: NOT_Successfull
    Alexis Mousset
    @amousset
    ! for not, forgot this one!
    Suvi
    @Suvi8

    Hi, i have a problem with aws.py Script,

    On certain Amazon EC2 Instances, the script gives an error:

    Traceback (most recent call last):
    File "aws.py", line 68, in <module>
    if is_ec2():
    File "aws.py", line 18, in is_ec2
    with open("/sys/hypervisor/uuid") as f:
    FileNotFoundError: [Errno 2] No such file or directory: '/sys/hypervisor/uuid'

    Francois Armand
    @fanf
    @Suvi8 it seems to be linked to the way the underlying host or VM is configured, I found: https://ask.openstack.org/en/question/21171/launch-xenserver-vm-errno-2-no-such-file-or-directory-syshypervisoruuid/
    Alexis Mousset
    @amousset
    @Suvi8 Is it a specific instance typeor OS that fails with this error?
    Bert Driehuis
    @driehuis_gitlab
    For the life of me, I can't figure out where the contents of /etc/cron.d/rudder-agent is coming from. I want to reduce the number of cron calls, but rudder seems to be overwriting my changes.
    Alexis Mousset
    @amousset
    It's part of the system policies of the agent, so it's enforced at each agent run
    Bert Driehuis
    @driehuis_gitlab
    Ah, found the template! /var/rudder/configuration-repository/techniques/system/common/1.0/rudder-agent-community-cron. The docs warn against editing files in this directory, but I think for such templates it should be okay to edit and commit them, I reckon. Or will this complicate upgrading rudder later?
    Alexis Mousset
    @amousset
    It should not be a problem, but you may have to do it after each upgrade
    Bert Driehuis
    @driehuis_gitlab
    I should be able to manage that, thanks!