You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@aurora.apache.org by "Hussein Elgridly (JIRA)" <ji...@apache.org> on 2015/03/13 23:25:38 UTC

[jira] [Updated] (AURORA-1198) Unhelpful error messages when attempting to submit malformed .aurora

     [ https://issues.apache.org/jira/browse/AURORA-1198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hussein Elgridly updated AURORA-1198:
-------------------------------------
    Description: 
Because I'm a stupid programmer, I did this:

{code}
#oops.aurora
my_ps = Process( name = "my_ps", ...snip... )
my_task = Task( name = "my_task", ...snip... )
my_job = Job( name = "my_job", ...snip... )

#This line should be jobs = [ my_job ], but I'm a stupid programmer who makes mistakes sometimes.
jobs = [ my_task ]
{code}

And then I try to submit it, and get this:

{code}
$ aurora job create cluster/role/devel/my_job oops.aurora
Error executing command: Error loading configuration: Task has no attribute cluster
{code}

So then I go hunting in the documentation to see where Task requires the attribute cluster, because I've never had to add it before, and only realise my error ten minutes later.

TLDR: Less misleading error messages please.

  was:
Because I'm a stupid programmer, I did this:

{code oops.aurora}
my_ps = Process( name = "my_ps", ...snip... )
my_task = Task( name = "my_task", ...snip... )
my_job = Job( name = "my_job", ...snip... )

#This line should be jobs = [ my_job ], but I'm a stupid programmer who makes mistakes sometimes.
jobs = [ my_task ]
{code}

And then I try to submit it, and get this:

{code}
$ aurora job create cluster/role/devel/my_job oops.aurora
Error executing command: Error loading configuration: Task has no attribute cluster
{code}

So then I go hunting in the documentation to see where Task requires the attribute cluster, because I've never had to add it before, and only realise my error ten minutes later.

TLDR: Less misleading error messages please.


> Unhelpful error messages when attempting to submit malformed .aurora
> --------------------------------------------------------------------
>
>                 Key: AURORA-1198
>                 URL: https://issues.apache.org/jira/browse/AURORA-1198
>             Project: Aurora
>          Issue Type: Bug
>            Reporter: Hussein Elgridly
>            Priority: Minor
>
> Because I'm a stupid programmer, I did this:
> {code}
> #oops.aurora
> my_ps = Process( name = "my_ps", ...snip... )
> my_task = Task( name = "my_task", ...snip... )
> my_job = Job( name = "my_job", ...snip... )
> #This line should be jobs = [ my_job ], but I'm a stupid programmer who makes mistakes sometimes.
> jobs = [ my_task ]
> {code}
> And then I try to submit it, and get this:
> {code}
> $ aurora job create cluster/role/devel/my_job oops.aurora
> Error executing command: Error loading configuration: Task has no attribute cluster
> {code}
> So then I go hunting in the documentation to see where Task requires the attribute cluster, because I've never had to add it before, and only realise my error ten minutes later.
> TLDR: Less misleading error messages please.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)