Skip to content

Commit

Permalink
updated build, changed when /var/cache/45drives/ubm is removed in dma…
Browse files Browse the repository at this point in the history
…p for autoalias servers
  • Loading branch information
markdhooper committed Jan 3, 2024
1 parent 753c5a8 commit c487ca1
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## 45drives-tools 3.0.6-4
## 45drives-tools 3.0.6-5

* fix getting ubm map key (strip whitespace)
* changed order in which /var/cache/45drives/ubm is removed. Rules will trigger after removal (for re-generation)
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title": "45drives-tools",
"prerelease": true,
"version": "3.0.6",
"buildVersion": "4",
"buildVersion": "5",
"author": "Mark Hooper <[email protected]>",
"url": "https://github.com/45Drives/tools",
"category": "utils",
Expand Down Expand Up @@ -66,7 +66,7 @@
"changelog": {
"urgency": "medium",
"version": "3.0.6",
"buildVersion": "4",
"buildVersion": "5",
"ignore": [],
"date": null,
"packager": "Mark Hooper <[email protected]>",
Expand Down
3 changes: 3 additions & 0 deletions packaging/el7/main.spec
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ fi
/usr/lib/udev/rules.d/*

%changelog
* Wed Jan 03 2024 Mark Hooper <[email protected]> 3.0.6-5
- changed order in which /var/cache/45drives/ubm is removed. Rules will trigger after
removal (for re-generation)
* Wed Jan 03 2024 Joshua Boudreau <[email protected]> 3.0.6-4
- fix getting ubm map key (strip whitespace)
* Tue Jan 02 2024 Joshua Boudreau <[email protected]> 3.0.6-3
Expand Down
3 changes: 3 additions & 0 deletions packaging/el8/main.spec
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ fi
/usr/lib/udev/rules.d/*

%changelog
* Wed Jan 03 2024 Mark Hooper <[email protected]> 3.0.6-5
- changed order in which /var/cache/45drives/ubm is removed. Rules will trigger after
removal (for re-generation)
* Wed Jan 03 2024 Joshua Boudreau <[email protected]> 3.0.6-4
- fix getting ubm map key (strip whitespace)
* Tue Jan 02 2024 Joshua Boudreau <[email protected]> 3.0.6-3
Expand Down
7 changes: 7 additions & 0 deletions packaging/focal/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
45drives-tools (3.0.6-5focal) focal; urgency=medium

* changed order in which /var/cache/45drives/ubm is removed. Rules will trigger
after removal (for re-generation)

-- Mark Hooper <[email protected]> Wed, 03 Jan 2024 11:03:43 -0400

45drives-tools (3.0.6-4focal) focal; urgency=medium

* fix getting ubm map key (strip whitespace)
Expand Down
8 changes: 4 additions & 4 deletions tools/dmap
Original file line number Diff line number Diff line change
Expand Up @@ -859,14 +859,14 @@ def main():

# check to see if server is capable of auto aliasing
if server.get("Auto Alias",False):
log("Server model {sm} is eligible for automatic device aliasing via udev rules.".format(sm=server["Model"]))
log("dmap will not modify /etc/vdev_id.conf when it is created automatically by udev rules.")
#trigger udev
if options.trigger_udev:
log("Removing ubm map key directory to fix potential aliasing issues with auto-aliasing. (/var/cache/45drives/ubm)")
shutil.rmtree("/var/cache/45drives/ubm",ignore_errors = True)
reload_udev()
trigger_udev()
log("Server model {sm} is eligible for automatic device aliasing via udev rules.".format(sm=server["Model"]))
log("dmap will not modify /etc/vdev_id.conf when it is created automatically by udev rules.")
log("Removing ubm map key directory to fix potential aliasing issues with auto-aliasing. (/var/cache/45drives/ubm)")
shutil.rmtree("/var/cache/45drives/ubm",ignore_errors = True)
sys.exit(0)

vdev_id_conf = create_vdev_id(server)
Expand Down

0 comments on commit c487ca1

Please sign in to comment.