{"id":16649432,"url":"https://github.com/eandersson/nova-filter-example","last_synced_at":"2026-04-12T08:33:53.074Z","repository":{"id":78450663,"uuid":"423697240","full_name":"eandersson/nova-filter-example","owner":"eandersson","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-02T03:56:51.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-19T06:41:16.907Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eandersson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-02T03:40:44.000Z","updated_at":"2022-03-07T14:08:53.000Z","dependencies_parsed_at":"2023-02-28T10:15:46.854Z","dependency_job_id":null,"html_url":"https://github.com/eandersson/nova-filter-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eandersson%2Fnova-filter-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eandersson%2Fnova-filter-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eandersson%2Fnova-filter-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eandersson%2Fnova-filter-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eandersson","download_url":"https://codeload.github.com/eandersson/nova-filter-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243222958,"owners_count":20256376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T09:09:52.344Z","updated_at":"2025-12-24T08:45:53.975Z","avatar_url":"https://github.com/eandersson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Installation under devstack\n---------------------------\nStart with git cloning and installing the package on your system\n```\nsudo su - stack\ngit clone https://github.com/eandersson/nova-filter-example.git\ncd nova-filter-example\npip install -e .\n```\n\nNext modify `/etc/nova/nova.conf` to include your new filter. You need to add the new filter to both available_filters and to enabled_filters.\n\n```\n[filter_scheduler]\navailable_filters = nova.scheduler.filters.all_filters\navailable_filters = nova_filter_example.RandomFilter\ntrack_instance_changes = False\nenabled_filters = ComputeFilter,RandomFilter\n```\n\nFinally, restart Nova.\n```\nsudo systemctl restart devstack@n-*\n```\n\nYou can confirm that your new random filter works by creating a VM and looking for the log lines we added. These lines will show up inside the nova-scheduler. You can access these logs using this command.\n```\nsudo journalctl -u devstack@n-sch -f -n 200\n```\nThe logs will then look like this.\n```\nnova-scheduler DEBUG nova_filter_example [None req-uuid alt_demo admin] Allowing VM on host: ubuntu due to result: 1\nnova-scheduler DEBUG nova_filter_example [None req-uuid alt_demo admin] Not Allowing VM on host: ubuntu due to result: 0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feandersson%2Fnova-filter-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feandersson%2Fnova-filter-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feandersson%2Fnova-filter-example/lists"}