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]: Using Milvus Docker Compose, in /var/lib/milvus, there is no data. HOT 3
- [Enhancement]: scalar memory optimization
- [Enhancement]: Milvus String Scalar filter is very slow HOT 4
- [Bug]: Metric `RootCoordQuotaStates` never reset
- [Bug]: flush all failed after milvus already gets back from many chaos test HOT 11
- [Bug]: [benchmark] Inserting data using upsert, datanode memory keeps growing HOT 3
- [Feature]: Support Squence Query Iterator HOT 1
- [Bug]: It's been a long time since Milvus recovered from the standalone pod kill chaos test, but the client still can't connect. HOT 1
- [Feature]: Enable GroupBy with group size function HOT 1
- [Bug]: Milvus panic when the disk has no free space HOT 2
- [Enhancement]: Remove compaction plans on the datanode HOT 1
- [Bug]: L0 compaction not control parallel count causing DN OOM HOT 2
- [Bug]: [benchmark][cluster] search raises error `fail to search on QueryNode 7: distribution is not servcieable: channel not available` in concurrent dql and dml(multi-partition) scene HOT 2
- [Bug]: [benchmark][cluster] flush 180s timeout in concurrent DML and DQL scenario HOT 2
- [Feature]: Adding a generic virtual resource allocator to orchestrate usage of memory, CPU, and disk, across different components
- [Enhancement]: Pre-allocate space for datanode insert buffer preventing frequent grow slice
- [Enhancement]: Support access log print consistency level HOT 1
- [Bug]: read source yaml failed: error converting YAML to JSON: yaml: line 22: block sequence entries are not allowed in this context HOT 1
- [Enhancement]: Try to speed up the loading of small collections HOT 1
- [Enhancement]: consider using `std::vector<>.shrink_to_fit()` to reduce the memory overhead HOT 1
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.