Comments (8)
@highvelcty I tried using your script and no errors were found. And the collection was created correctly
from milvus.
can you give me more information about the milvus and pymilvus version, and completed error message.
from milvus.
/assign @highvelcty
/unassign
from milvus.
Hi @yanliang567 ,
Thank you for looking into this with me.
I initialized my entire system and I was able to create a user specific collection without error. I wonder if there was something with the state of my machine that was causing the trouble.
However, I tried listing the created collections with a non-root user, but an empty list was returned.
These permissions have been provided to the role assigned to the user (see line 71 of create_user_collection.py):
root_client.grant_privilege(role_name=USERROLE,
object_type='Global',
privilege='All',
object_name='*')
root_client.grant_privilege(role_name=USERROLE,
object_type='Global',
privilege='CreateCollection',
object_name='CreateCollection')
root_client.grant_privilege(role_name=USERROLE,
object_type='Global',
privilege='ShowCollections',
object_name='ShowCollections')
I updated this the create_user_collections.py script to print the collection listing via the non-root user client (see line 149).
# ./create_user_collection.py
root client list collections: ['user_collection']
user1 list collections: []
#
The expectcation is that either the "Global/All/*" or the "Global/ShowCollections/ShowCollections" permissions should have allowed the non-root user to list collections.
from milvus.
I see the "user1 client list collections: []" output with the following version sets:
- Milvus version: 2.4.1
- SDK version: 2.4.1
- Milvus version: 2.4.1
- SDK version: 2.4.3
from milvus.
I tried to run the script above, and only update the milvus host with my deployment. it seems it returns the collections successfully, is that your expectation?
my milvus and sdk version:
- Milvus version: 2.4.1
- SDK version: 2.4.3
from milvus.
@highvelcty I have found the cause of the problem. A temporary solution is to grant this role the relevant permissions of a collection, for example:
root_client.grant_privilege(role_name=USERROLE,
object_type='Collection',
privilege='Insert',
object_name='*')
I will fix it in the next version
from milvus.
Great! Thank you @SimFG and @yanliang567!
from milvus.
Related Issues (20)
- [Bug]: offset in not correctly used in HybridSaerch
- [Bug]: [null & default] bulk insert failed when insert "None" list to the array field for json type file HOT 3
- [Bug]: [null & default] bulk insert failed when insert "None" to the int64 field using the parquet file
- [Bug]: Encountered a `LoadSegment: stoi` error during the query node restart.
- [Bug]: fix search/query/count may access same growing and sealed segment HOT 1
- [Bug]: collection loading failed HOT 5
- [Bug]: [null & default] Group by field does not support null HOT 2
- [Bug]: [null & default] bulk writer does not support "None" data HOT 1
- [Bug]: milvus didn't return the same number of records as parameter "limit" HOT 1
- [Bug]: BinlogDeserializeReader leak in mix_compactor.go HOT 1
- [Bug]: fail to Query on QueryNode 3: worker(3) query failed: getrandom HOT 1
- [Bug]: [Nightly] Hybrid search results are different from expected HOT 4
- [Bug]: inverted index array element check issue HOT 1
- [Bug]: Running BEIR tests on MSMARCO data in the 8c32g instance leads to out-of-memory (OOM) issues. HOT 5
- [Bug]: [ERROR] RPC error: [query], <MilvusException: (code=0, message=query expression is empty)> HOT 1
- [Bug]: [group size] hybrid search group by does not return results does not match ranker_group_scorer='sum' HOT 2
- [Bug]: After creating a collection using the BM25 function, unable to insert data into this collection in a dataframe format. HOT 1
- [Bug]: The BM25 "Function" module error messages are not user-friendly HOT 1
- [Bug]: integration suite may failed due to data race
- [Enhancement]: remove tools/core_gen after #35251
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from milvus.