Skip to content

Commit

Permalink
Merge pull request #26 from arbulu89/hotfix/fix-ascs-restart
Browse files Browse the repository at this point in the history
Hotfix/fix ascs restart
  • Loading branch information
arbulu89 authored Jan 21, 2020
2 parents 9447148 + 58cb753 commit 310635d
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
29 changes: 29 additions & 0 deletions netweaver/setup/shared_disk.sls
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,28 @@ second_partition:
- require:
- label_partition
# This state is done to avoid failure in disk formatting
wait_until_partition:
module.run:
- test.sleep:
- length: 5
- require:
- sbd_partition
- first_partition
- second_partition
format_first_partition:
cmd.run:
- name: /sbin/mkfs.xfs {{ node.shared_disk_dev }}2
- require:
- wait_until_partition
- first_partition
format_second_partition:
cmd.run:
- name: /sbin/mkfs.xfs {{ node.shared_disk_dev }}3
- require:
- wait_until_partition
- second_partition
{% else %}
Expand All @@ -48,5 +60,22 @@ rescan_partition:
- hide_output: True
- timeout: 6000
# This state is done to give always time to the disk formatting done by the 1st node
wait_until_rescan:
module.run:
- test.sleep:
- length: 10
- require:
- rescan_partition
rescan_after_formatting:
cmd.run:
- name: partprobe; fdisk -l {{ node.shared_disk_dev }}
- output_loglevel: quiet
- hide_output: True
- timeout: 6000
- require:
- wait_until_rescan
{% endif %}
{% endfor %}
7 changes: 7 additions & 0 deletions sapnwbootstrap-formula.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jan 20 13:48:38 UTC 2020 - Xabier Arbulu <xarbulu@suse.com>

- Version bump 0.1.9
* Improve the shared disk creation to avoid issues mounting and
formatting the partitions (and later on with SAP instances)

-------------------------------------------------------------------
Thu Dec 19 12:19:23 UTC 2019 - Xabier Arbulu <xarbulu@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion sapnwbootstrap-formula.spec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines

Name: sapnwbootstrap-formula
Version: 0.1.8
Version: 0.1.9
Release: 0
Summary: SAP Netweaver platform deployment formula
License: Apache-2.0
Expand Down

0 comments on commit 310635d

Please sign in to comment.