Commit Graph

618 Commits

Author SHA1 Message Date
Adam Stokes 2bd7c2a00a Merge pull request #128 from CanonicalLtd/identity_ux_update
Identity ux update
2015-11-20 17:17:13 -05:00
Ryan Harper 0534ef1d72 cleanup identity ux and lint fixes
- fix make check
- Forgot colon after Confirm your password

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-20 16:05:23 -06:00
Ryan Harper 13c06bd5c1 Update identity UX
- Model inputs after Ubiquity layout
- Add Servername (hostname)
- Add SSH ID import (import from launchpad or github)
- Include information under important fields
- Drop old/unused hostname MVC files

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-20 16:00:10 -06:00
Ryan Harper e2902099e0 lint: fix up indentation found by make check
Missed a make check before merging a branch.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-20 09:57:14 -06:00
Ryan Harper d2bec60d54 Merge pull request #127 from CanonicalLtd/hide_menu_options_as_needed
Hide menu options as needed
2015-11-20 09:56:04 -06:00
Ryan Harper 9872bdfb94 Don't display partition menu options if not allow
- Skip add_partition entry for bcache, raid, and lvm devices
- Don't display Format entire partition if it's already been formated

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-19 18:31:30 -06:00
Ryan Harper 02f7aade37 Don't let invalid mounts appear in fstable
Missing return from error allowed invalid mounts
to appear in fs table.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-19 16:29:28 -06:00
Ryan Harper 35c5a0b279 Protect mountpoint from relative paths and duplicate pathsep
Use os.path.realpath() to clean up any path manipulations

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-19 16:28:36 -06:00
Adam Stokes 0d850d7a6d Merge pull request #126 from CanonicalLtd/make_buttons_fixed_size
Add fixed_X attribute to Padding class and apply to all buttons
2015-11-19 16:26:11 -05:00
Ryan Harper 13d46b38d2 Add fixed_X attribute to Padding class and apply to all buttons
The new fixed_X attribute will center and set a fixed size on the
widget wrapped.  This keeps the widget the same size no matter the
scale of the window.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-19 15:24:40 -06:00
Adam Stokes 0c58cc7e52 Merge pull request #125 from CanonicalLtd/bcache_allow_multi_backing_per_cache
Bcache allow multi backing per cache
2015-11-17 18:49:17 -05:00
Ryan Harper 83554513e1 Add Blockdev tags to indicate device usage
Allow installer to tag devices with purpose for display
in USED DISKS in the filesystem view.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-17 16:12:45 -06:00
Ryan Harper 71e2706455 Allow multiple backing devices per cache device
- Add backing/cache properties to Bcachedev class
- Add filesystem model method for listing bcache cache devices
- Update bcache view
  - Allow bcache cache devices to always be listed
  - Don't display existing bcache devices

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-17 15:02:23 -06:00
Adam Stokes 3ee97160ed Merge pull request #124 from CanonicalLtd/async_curtin_install
Async curtin install
2015-11-16 19:50:15 -05:00
Ryan Harper 65a1351c35 Fix hang during async install
We needed to add in a dummy stdin fd for the async run_command
Fix up the postinstall command
Add a check on tailing the install log file

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-16 17:30:29 -06:00
Ryan Harper e3d8f9003a Rework async curtin install commands
Return to spawning curtin in two stages, and include additional
signals and flags to control when we spawn the postinstall
config operation.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-16 14:59:59 -06:00
Ryan Harper b583b0e953 Merge pull request #122 from CanonicalLtd/logfile_permissions
Logfile permissions
2015-11-16 08:37:33 -06:00
Adam Stokes 9c28c27201 Merge pull request #123 from CanonicalLtd/add_bcache_ux
Add bcache ux
2015-11-13 16:21:18 -05:00
Ryan Harper 75a3171d57 Fix up blockdev holder support to mark raid and bcache holders
Fixing this prevents devices that are part of a bcache from being
presented as available.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-13 13:42:36 -06:00
Ryan Harper 0385e754ab Initial working bcache UX connected to fs model
Panel up and adds a bcache device.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-13 12:29:18 -06:00
Ryan Harper d786676366 Line up usage of BcacheAction, Bcachedev and model
Ensure they all use backing_dev, cache_dev parameter ordering
Added properties to BcacheAction for involved devices

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-13 10:59:38 -06:00
Ryan Harper 040382ac21 Implment add_bcache_device to filesystem model
Very similiar to adding a raid device, bcache has
fewer inputs and calculations.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-13 10:27:57 -06:00
Ryan Harper e2d9ea0f50 Update BcacheAction object
Add __eq__ method and use action_id as parameter.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-13 10:10:33 -06:00
Ryan Harper d7585f0506 Rename logdir and logfile to be more specific
logdir -> .subiquity
logfile -> subiquity-debug.log

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-13 09:41:02 -06:00
Ryan Harper cdfe2779b8 Handle PermissionError on logfile gracefully
Don't stacktrace the error, print it out nicely.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-13 08:36:29 -06:00
Ryan Harper bd31dea5c6 Fix lint in actions.py
make check missed when fixing wiping superblock by default

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-11 09:34:20 -06:00
Ryan Harper 67a174453f Bump subiquity version for release
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-11 09:33:39 -06:00
Ryan Harper 6f0a7cbbbb NetAction should initialize params and subnets
We initialized params and subnets to empty lists.
Params is expected to be a dictionary while subnets
is a list.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-11 08:36:52 -06:00
Ryan Harper cca4ff1fbe Always wipe disks by default
Update DiskAction to defaulting to wipe the superblock

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-10 22:49:34 -06:00
Ryan Harper cebce4db6c Fix add-raid-dev signal
Rework of the menu signals broke add-raid-dev by mapping a
menu signal to a completion signal.  Revert add-raid-dev back
to non-menu signal to fix.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-10 22:32:59 -06:00
Ryan Harper e48ba70501 Merge pull request #121 from CanonicalLtd/add_bonding_ux
Add initial bonding UX panels and model connections
2015-11-10 22:12:12 -06:00
Ryan Harper 408cdbfb71 Add initial bonding UX panels and model connections
We now have a bonding UX panel, modeled after the raid menu
where we have a list of interfaces and a radiobox for
selecting the bond mode.  This calls into the network
model to add the bond interface.

- Update the network view to only display the Bond option if we have
more than one interface that is available (ie, not already part of
a bond).
- Also update the bond info to include the bond interface composition
in the hardware info such that it displays according to spec
- Add iface_is_bonded_slave to model
- Update network model info dict to include bond_{slave,master}.  This
helps us display the (Bonded) attribute for slaves, but not the primary
bond iface.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-09 15:34:43 -06:00
Adam Stokes 70a6ef3f5b Merge pull request #120 from CanonicalLtd/network-ux-update
Network ux update
2015-11-06 15:39:41 -05:00
Ryan Harper 1ab56772b4 Fix network view for setting default route
- Spec calls for a list of gateway ips followed by a list of interfaces
  which are associated to be displayed
- Use updated model.set_default_gateway() method
- Add Default gateway status message to Network View
- Ensure that manually assigned gateways are displayed in the set default
  route view by extracting the 'gateway' value from the subnets in
  the Networkdev object.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-06 13:38:21 -06:00
Ryan Harper 5298092d15 Update example probe data to include info from latest probert
Probert includes network info on bonds and bridges, include this
data as we now rely upon it in the network model.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-06 10:38:03 -06:00
Ryan Harper 8a469b1774 Refix handling of no-nics
When fixing the width of the column for network interface names
we re-introduced a bug that occurs when a host has no nics
available.  Fix this again.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-06 10:36:58 -06:00
Ryan Harper e097cc81c4 Update network view 'done' to use updated model
The model makes use of Networkdev objects, when the
user is ready, done will extract the current configuration
from the devices and emit the actions.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-06 10:11:33 -06:00
Ryan Harper fe7faaa038 Modify ip source output in view
Match the same ordering of provider and method between the
main network view and the manual configuration views.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-06 10:03:46 -06:00
Ryan Harper 1788d89557 Update manual network config ux to use network model objects
- Use get_interface method to obtain and Networkdev object
and interact with this.  Validates {add,remove}_subnet methods
on Networkdev objects.
- Add method in model for setting and validating gateway values

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-06 09:52:05 -06:00
Ryan Harper e83981c063 Update network config view to use interface object
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-06 09:33:30 -06:00
Ryan Harper a164fffad7 Overhaul networkin model and networking actions
The network model wasn't not prepared to allow manual configuration
to affect the state such that after manual configuration the view
would be able to extract the current state of a network device
config.  Reuse the Blockdev model as Networkdev as well as encapsulating
the use of the action objects as a means of storting the current
configuration.

Adjust the views to use the updated model.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-06 09:19:44 -06:00
Ryan Harper 5086b00263 Fetch manual configuration
Collect and apply manual ipv4 interface configuration and update
the model.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-04 09:50:58 -06:00
Ryan Harper c6b3298f84 Clean up network configure interface view
- Call into model to extract interface info to populate view
- Clearly display two modes, ipv4 and v6
- Change button style, ideally we'd make a new one that doesn't indent by two
  chars
- Disabled ipv6 button for now

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-03 16:57:27 -06:00
Ryan Harper 8fe3d3c28a Merge pull request #118 from CanonicalLtd/fix_empty_username
Validate realname, username, and passwords on identity page
2015-11-03 14:08:45 -06:00
Ryan Harper b75cc356aa Validate realname, username, and passwords on identity page
- Apply limits to realname (1..160)
- Apply limits to username (1..32)
- Restrict chars allowed for realname via RealnameEditor widget
- Ensure all fields have input

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-03 14:00:05 -06:00
Ryan Harper bc30e87e4c Merge pull request #117 from CanonicalLtd/on_finish_add_quit_button
Make exiting installer easier
2015-11-03 13:18:34 -06:00
Ryan Harper 6ab9f7a58b Make exiting installer easier
- Add a 'Quit Installer' button on the final install progress screen. This
is useful for users who want to mess around with the system post-install.
- Redirect 'Reboot' to 'quit' if we're in dry-run mode.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-03 13:08:15 -06:00
Ryan Harper c6b5322c77 Merge pull request #112 from CanonicalLtd/fix-escape-ux
Refactor signals to improve navigation
2015-11-03 12:51:57 -06:00
Ryan Harper 9664f60408 make check: fix lint issue with signal rework
Fix up flake8 issues.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-03 12:44:17 -06:00
Ryan Harper 1f7383a0f5 Merge branch 'fix-escape-ux' of github.com:CanonicalLtd/subiquity into fix-escape-ux 2015-11-03 12:37:11 -06:00