Skip to content

Commit f0e98c1

Browse files
Merge pull request #1 from Cray-HPE/CASMHMS-5604
CASMHMS-5604: Fixed an issue where node MAC addresses where node bein…
2 parents 6305d66 + 9da4e9f commit f0e98c1

File tree

4 files changed

+23
-4
lines changed

4 files changed

+23
-4
lines changed

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.0
1+
1.3.0

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ Fixed - for any bug fixes
2424
Security - in case of vulnerabilities
2525
-->
2626

27+
## [1.3.0] - 2022-07-01
28+
29+
### Fixed
30+
31+
- CASMHMS-5604: Fixed an issue where node MAC addresses where node being randomized.
32+
33+
### Changed
34+
35+
- Remove build dependencies at the end of the build step to create a leaner docker image. The image size is now 156MB, when in the pervious release is 1.42GB.
36+
2737
## [1.2.0] - 2022-06-17
2838

2939
### Added

Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2929
# POSSIBILITY OF SUCH DAMAGE.
3030

31-
FROM artifactory.algol60.net/docker.io/library/golang:1.16-alpine AS build-base
31+
FROM artifactory.algol60.net/docker.io/library/alpine:3.16 AS base
3232

3333
# Insert our emulator extentions
3434
COPY src /app
@@ -52,7 +52,16 @@ RUN set -ex \
5252
pip \
5353
setuptools \
5454
&& pip3 install wheel \
55-
&& pip3 install -r /app/requirements.txt
55+
&& pip3 install -r /app/requirements.txt \
56+
&& apk del \
57+
build-base \
58+
gcc \
59+
python3-dev \
60+
openssl-dev \
61+
libffi-dev \
62+
musl-dev \
63+
cargo
64+
5665

5766
EXPOSE 5000
5867
ENV MOCKUPFOLDER="public-rackmount1"

src/api_emulator/loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ def randomize(self):
528528
foundSNs[sn] = rndSN
529529
page['SerialNumber'] = rndSN
530530
if 'EthernetInterfaces' in system:
531-
url = system[collection]['@odata.id'].replace('/redfish/v1/', '')
531+
url = system['EthernetInterfaces']['@odata.id'].replace('/redfish/v1/', '')
532532
collection_page = self.resource_dictionary.get_resource(url)
533533
for memberUrl in collection_page['Members']:
534534
url = memberUrl['@odata.id'].replace('/redfish/v1/', '')

0 commit comments

Comments
 (0)