Action return value too long for commandline

2016-04-03 Thread Merlijn Sebrechts
Hi all


The apache-kafka charm has an action "read-topic" that can return a lot of
data. Sometimes, this data is too long to be passed to `action-set` by
commandline. You get the following error:

Traceback (most recent call last):
  File "actions/read-topic", line 36, in 
hookenv.action_set({'output': output})
  File
"/usr/local/lib/python2.7/dist-packages/charmhelpers/core/hookenv.py", line
615, in action_set
subprocess.check_call(cmd)
  File "/usr/lib/python2.7/subprocess.py", line 535, in check_call
retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 7] Argument list too long


Is there any way to pass a file to action-set?



Kind regards
Merlijn Sebrechts
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: Action return value too long for commandline

2016-04-03 Thread Stuart Bishop
On 4 April 2016 at 02:00, Merlijn Sebrechts  wrote:
> Hi all
>
>
> The apache-kafka charm has an action "read-topic" that can return a lot of
> data. Sometimes, this data is too long to be passed to `action-set` by
> commandline. You get the following error:
>
> Traceback (most recent call last):
>   File "actions/read-topic", line 36, in 
> hookenv.action_set({'output': output})
>   File
> "/usr/local/lib/python2.7/dist-packages/charmhelpers/core/hookenv.py", line
> 615, in action_set
> subprocess.check_call(cmd)
>   File "/usr/lib/python2.7/subprocess.py", line 535, in check_call
> retcode = call(*popenargs, **kwargs)
>   File "/usr/lib/python2.7/subprocess.py", line 522, in call
> return Popen(*popenargs, **kwargs).wait()
>   File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
> errread, errwrite)
>   File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
> raise child_exception
> OSError: [Errno 7] Argument list too long
>
>
> Is there any way to pass a file to action-set?

This bug affects many of the Juju tools causing charms to fail at
scale. https://bugs.launchpad.net/juju-core/+bug/1437366
(relation-set) is the only one I know of that has been fixed.
https://bugs.launchpad.net/juju-core/+bug/1274460 (juju-log) is still
open. leader-set also fails now I think of it, but I haven't tripped
over that one (it limits scalability the way I'm using leadershp
settings, but I should be able to squeeze out several hundred units).
Maybe we can use the opportunity to fix quoting and encoding issues.

I suspect if you can get past command line length limitations, I
suspect the next glass ceiling is a 16MB document size limit in
MongoDB (which is large enough to not need fixing?)

-- 
Stuart Bishop 

-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Charm Community Team Sprint

2016-04-03 Thread Marco Ceppi
Hello everyone,

I just wanted to let you all know that a small group of us are sprinting
(getting together in a single location to work on a specific set of tasks)
this week. We've got a long list of things we want tackle, most of which
are focused around developer experience and juju 2.0.

As such I'd like to extend an invite to anyone who happens to be in the DC
Metro area and would like to join us, stop by, or hang out. We'll be in
Crystal City at the "TechShop DC-Arlington" location. Ping me off list if
you're interested.

Second to that, I wanted to share the long list of tasks[0] and our task
board[1] for this sprint. It's an ambitious amount of work and one I don't
expect us to complete, but nonetheless, the bar is set high. As such, it'd
be great to get feedback from the community to help prioritize this list.

Finally, for those not in the DC Metro area, we invite anyone to drop by
our sprint, virtually, between the hours of 8:30 - 17:00 EDT (12:30 - 21:00
UTC) virtually with Appear.in[2]. We'll have a webcam streaming during the
sprint where we can field questions as well as assign work to anyone in the
community looking to join us remotely.

We'll have a sprint retrospective published Friday with a list of completed
and outstanding items. In the meantime, we're happy to take any feedback,
questions, or help!

Thanks,
Marco Ceppi

[0]:
https://tree.taiga.io/project/marcoceppi-juju-charm-community-sprint-201604/backlog
[1]:
https://tree.taiga.io/project/marcoceppi-juju-charm-community-sprint-201604/taskboard/20160404-day-1
[2]: https://appear.in/marcoceppi-juju-charm-community-sprint-201604
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju