flux-framework / flux-k8s

Project to manage Flux tasks needed to standardize kubernetes HPC scheduling interfaces
Apache License 2.0
20 stars 10 forks source link

Problems compiling when running `make` #36

Closed kannon92 closed 7 months ago

kannon92 commented 1 year ago

I have cloned the repo and I am trying to build the scheduler plugin.

a) cd scheduler-plugin b) make

I get the following error in the build:

make[1]: Leaving directory '/home/flux-sched'
cp: cannot stat 'resource/hlapi/bindings/c/.libs/*': No such file or directory
The command '/bin/sh -c git clone https://github.com/cmisale/flux-sched.git --branch gobind-dev --single-branch &&     cd /home/flux-sched/     && ./autogen.sh && PYTHON_VERSION=3.8 ./configure --prefix=/home/flux-install && make -j && make install    && cp -r resource/hlapi/bindings/c/.libs/* resource/.libs/* /home/flux-install/lib/     && cp -r resource/hlapi/bindings/go/src/fluxcli /go/src/    && mv  resource/hlapi/bindings /tmp     && cd /home && mkdir -p flux-sched/resource/hlapi && mv /tmp/bindings flux-sched/resource/hlapi' returned a non-zero code: 1

I think this is an issue in the Dockerfile:

    && cp -r resource/hlapi/bindings/c/.libs/* resource/.libs/* /home/flux-install/lib/ \
    && cp -r resource/hlapi/bindings/go/src/fluxcli /go/src/ \

Any suggestions on how to proceed?

vsoch commented 1 year ago

@milroy and @cmisale can comment but I think you probably want the canopie-artifacts22 branch https://github.com/flux-framework/flux-k8s/tree/canopie22-artifacts or the associated release https://github.com/flux-framework/flux-k8s/releases/tag/v1.0.1

kannon92 commented 1 year ago

@milroy and @cmisale can comment but I think you probably want the canopie-artifacts22 branch https://github.com/flux-framework/flux-k8s/tree/canopie22-artifacts or the associated release https://github.com/flux-framework/flux-k8s/releases/tag/v1.0.1

Ah thank you. I checked out this branch but I also found this README for the PI one and that seems to work. (https://github.com/flux-framework/flux-k8s/tree/main/examples/pi)

vsoch commented 1 year ago

Oh I remember that one! @ArangoGutierrez showed me that a long time ago. Hi @ArangoGutierrez :wave: thanks for the pie! :pie:

ArangoGutierrez commented 1 year ago

That PI project just keeps giving :)

cmisale commented 1 year ago

@kannon92 to build and install the plugin scheduler, you will need to refer to the fork of the scheduler framework we have in here (branch fluence). We follow the same methodology and infrastructure used by the framework and therefore:

I hope it still works.. I don't have any place where to try it for now

vsoch commented 7 months ago

@kannon92 in case you are still trying - we do have an automated build now, and you should be able to follow the instructions in the Deploy section of the README:

https://github.com/flux-framework/flux-k8s?tab=readme-ov-file#deploy

And in the next few weeks we are going to restructure things a bit to make it easier to maintain (and updated more frequently)! For example, there is currently a bug that will be fixed when we rebase against kubernetes-sigs/scheduler-plugins. If you are good, please feel to close the issue, otherwise let me know how I can help (and I'll proceed with this next stage of work with that in mind). Are you still testing out fluence and have questions or want to chat more?

kannon92 commented 7 months ago

Sorry, @cmisale notes helped me to play around with fluxion in Armada. We were able to use the plugin for an Armada job. We didn’t pursue it much farther than that.

I am afraid I am no longer involved with Armada so I won’t be able to continue this line of work.

We can close this issue for now.

vsoch commented 7 months ago

Gotcha, thanks for the update!