Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop fails with TypeError: string indices must be integers #85

Closed
gronke opened this issue Sep 12, 2017 · 0 comments
Closed

Stop fails with TypeError: string indices must be integers #85

gronke opened this issue Sep 12, 2017 · 0 comments
Labels

Comments

@gronke
Copy link
Member

gronke commented Sep 12, 2017

# python3.6 . -d spam stop myjail
[+] JailDestroy: OK [0.005s]: 1
[-] JailNetworkTeardown: ...
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "./__main__.py", line 51, in <module>
    main()
  File "./__main__.py", line 45, in main
    cli(prog_name="iocage")
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "./libiocage/cli/stop.py", line 57, in cli
    ctx.parent.print_events(jail.stop(force=force))
  File "./libiocage/cli/__init__.py", line 64, in print_events
    for event in generator:
  File "./libiocage/lib/Jail.py", line 377, in stop
    self._stop_vimage_network()
  File "./libiocage/lib/Jail.py", line 788, in _stop_vimage_network
    for network in self.networks:
  File "./libiocage/lib/Jail.py", line 1068, in __getattribute__
    return object.__getattribute__(self, key)
  File "./libiocage/lib/Jail.py", line 758, in networks
    bridges = list(self.config["interfaces"][nic])
TypeError: string indices must be integers
allow_chflags:0
allow_mount:0
allow_mount_devfs:0
allow_mount_nullfs:0
allow_mount_procfs:0
allow_mount_tmpfs:0
allow_mount_zfs:0
allow_quotas:0
allow_raw_sockets:0
allow_set_hostname:1
allow_socket_af:0
allow_sysvipc:0
basejail:yes
boot:no
children_max:0
clonejail:yes
defaultrouter:-
defaultrouter6:-
devfs_ruleset:4
enforce_statfs:2
exec_clean:1
exec_fib:1
exec_poststart:/usr/bin/true
exec_poststop:/usr/bin/true
exec_prestart:/usr/bin/true
exec_prestop:/usr/bin/true
exec_start:/bin/sh /etc/rc
exec_stop:/bin/sh /etc/rc.shutdown
exec_timeout:60
host_domainname:-
id:myjail
interfaces:vnet0:bridge1
ip4:new
ip4_addr:-
ip4_saddrsel:1
ip6:new
ip6_saddrsel:1
jail_zfs:no
legacy:-
mac_prefix:02ff60
mount_devfs:1
mount_fdescfs:1
priority:0
release:11.1-RELEASE
resolver:/etc/resolv.conf
securelevel:2
stop_timeout:30
sysvmsg:new
sysvsem:new
sysvshm:new
tags:-
vnet:yes
@gronke gronke added the bug label Sep 12, 2017
@gronke gronke closed this as completed Sep 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant