2025-01-02 02:16:27,230 - INFO - Domain Default found not creating
2025-01-02 02:16:27,377 - INFO - Project ctest-TestBasicPolicy-02975804 not found, creating it
2025-01-02 02:16:27,836 - INFO - Created Project:ctest-TestBasicPolicy-02975804, ID : cb40639d-7d1d-41bc-9d45-e72c0a24c3d8
2025-01-02 02:16:29,868 - INFO - ================================================================================
2025-01-02 02:16:29,868 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-02 02:16:29,868 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-01-02 02:16:30,123 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.20.0.5': '0'}} with
2025-01-02 02:16:30,123 - INFO - Initial checks done. Running the testcase now
2025-01-02 02:16:30,124 - INFO -
2025-01-02 02:16:30,638 - DEBUG - Response for create_network : {'network': {'id': '14ff1888-9abd-4b28-9960-b23b70474b39', 'name': 'ctest-vn-92535964', 'tenant_id': 'cb40639d7d1d41bc9d45e72c0a24c3d8', 'project_id': 'cb40639d7d1d41bc9d45e72c0a24c3d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02975804', 'ctest-vn-92535964'], 'port_security_enabled': True, 'description': ''}}
2025-01-02 02:16:30,830 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5631c01-7f53-40eb-9467-90876de6733e', 'name': '', 'tenant_id': 'cb40639d7d1d41bc9d45e72c0a24c3d8', 'network_id': '14ff1888-9abd-4b28-9960-b23b70474b39', 'ip_version': 4, 'cidr': '115.181.255.128/26', 'allocation_pools': [{'start': '115.181.255.130', 'end': '115.181.255.190'}], 'gateway_ip': '115.181.255.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.181.255.130', 'tags': [], 'project_id': 'cb40639d7d1d41bc9d45e72c0a24c3d8'}}
2025-01-02 02:16:30,850 - INFO - Created VN ctest-vn-92535964
2025-01-02 02:16:30,901 - DEBUG - VN ctest-vn-92535964 UUID is 14ff1888-9abd-4b28-9960-b23b70474b39
2025-01-02 02:16:31,186 - DEBUG - Response for create_network : {'network': {'id': '4decb39b-b262-4c57-b395-acdaee8db9ce', 'name': 'ctest-vn-78261722', 'tenant_id': 'cb40639d7d1d41bc9d45e72c0a24c3d8', 'project_id': 'cb40639d7d1d41bc9d45e72c0a24c3d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02975804', 'ctest-vn-78261722'], 'port_security_enabled': True, 'description': ''}}
2025-01-02 02:16:31,364 - DEBUG - Response for create_subnet : {'subnet': {'id': '85c1591e-b701-46c3-a493-d5fb43130373', 'name': '', 'tenant_id': 'cb40639d7d1d41bc9d45e72c0a24c3d8', 'network_id': '4decb39b-b262-4c57-b395-acdaee8db9ce', 'ip_version': 4, 'cidr': '165.73.92.0/26', 'allocation_pools': [{'start': '165.73.92.2', 'end': '165.73.92.62'}], 'gateway_ip': '165.73.92.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.73.92.2', 'tags': [], 'project_id': 'cb40639d7d1d41bc9d45e72c0a24c3d8'}}
2025-01-02 02:16:31,383 - INFO - Created VN ctest-vn-78261722
2025-01-02 02:16:31,433 - DEBUG - VN ctest-vn-78261722 UUID is 4decb39b-b262-4c57-b395-acdaee8db9ce
2025-01-02 02:16:31,550 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02975804:ctest-vn-92535964, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02975804:ctest-vn-78261722, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-01-02 02:16:31,842 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '14ff1888-9abd-4b28-9960-b23b70474b39', 'name': 'ctest-vn-92535964', 'tenant_id': 'cb40639d7d1d41bc9d45e72c0a24c3d8', 'project_id': 'cb40639d7d1d41bc9d45e72c0a24c3d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d5631c01-7f53-40eb-9467-90876de6733e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02975804', 'ctest-vn-92535964'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02975804', 'ctest-policy-allow-all-52504965']], 'subnet_ipam': [{'subnet_cidr': '115.181.255.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-02 02:16:32,075 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4decb39b-b262-4c57-b395-acdaee8db9ce', 'name': 'ctest-vn-78261722', 'tenant_id': 'cb40639d7d1d41bc9d45e72c0a24c3d8', 'project_id': 'cb40639d7d1d41bc9d45e72c0a24c3d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['85c1591e-b701-46c3-a493-d5fb43130373'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02975804', 'ctest-vn-78261722'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02975804', 'ctest-policy-allow-all-52504965']], 'subnet_ipam': [{'subnet_cidr': '165.73.92.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-02 02:16:32,225 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-01-02 02:16:32,526 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-01-02 02:16:32,557 - DEBUG - Requesting: http://10.0.0.46:8082/domain/9d4d982e-e6c4-414d-a620-c150b0ef0aa3
2025-01-02 02:16:32,571 - DEBUG - Requesting: http://10.0.0.46:8082/project/cb40639d-7d1d-41bc-9d45-e72c0a24c3d8
2025-01-02 02:16:32,640 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/14ff1888-9abd-4b28-9960-b23b70474b39
2025-01-02 02:16:32,653 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/14ff1888-9abd-4b28-9960-b23b70474b39
2025-01-02 02:16:32,665 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/c67c5806-2acb-4406-a4bb-36819aaa35cb
2025-01-02 02:16:32,672 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/c67c5806-2acb-4406-a4bb-36819aaa35cb
2025-01-02 02:16:32,679 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/d809cd60-d4e4-46b7-8f1e-9074977d235f
2025-01-02 02:16:32,686 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 02:16:32,686 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/14ff1888-9abd-4b28-9960-b23b70474b39
2025-01-02 02:16:32,694 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/c67c5806-2acb-4406-a4bb-36819aaa35cb
2025-01-02 02:16:32,709 - INFO - Verified VN network id 8 for VN 14ff1888-9abd-4b28-9960-b23b70474b39
2025-01-02 02:16:32,710 - INFO - Verifications in API Server for VN ctest-vn-92535964 passed
2025-01-02 02:16:32,710 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/14ff1888-9abd-4b28-9960-b23b70474b39
2025-01-02 02:16:32,719 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/c67c5806-2acb-4406-a4bb-36819aaa35cb
2025-01-02 02:16:32,726 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/c67c5806-2acb-4406-a4bb-36819aaa35cb
2025-01-02 02:16:32,733 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/d809cd60-d4e4-46b7-8f1e-9074977d235f
2025-01-02 02:16:32,747 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02975804:ctest-vn-92535964', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02975804', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1512954974810491688', 'uuid-lslong': '11052029453923732281'}, 'enable': 'true', 'created': '2025-01-02T02:16:30', 'last-modified': '2025-01-02T02:16:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.929738'}
2025-01-02 02:16:32,753 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 02:16:32,753 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92535964 passed
2025-01-02 02:16:32,754 - DEBUG - ====Verifying policy data for ctest-vn-92535964 in API_Server ======
2025-01-02 02:16:32,754 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-01-02 02:16:32,760 - DEBUG - Requesting: http://10.0.0.46:8082/domain/9d4d982e-e6c4-414d-a620-c150b0ef0aa3
2025-01-02 02:16:32,771 - DEBUG - Requesting: http://10.0.0.46:8082/project/cb40639d-7d1d-41bc-9d45-e72c0a24c3d8
2025-01-02 02:16:32,842 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/14ff1888-9abd-4b28-9960-b23b70474b39
2025-01-02 02:16:32,850 - DEBUG - ==>Verifying data for policy with id: c24f1577-5490-4e22-b4bb-b7c2ca6d8171, fqn: ['default-domain', 'ctest-TestBasicPolicy-02975804', 'ctest-policy-allow-all-52504965']
2025-01-02 02:16:32,850 - INFO - VN ctest-vn-92535964 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 02:16:32,850 - DEBUG - Verifying the vn in opserver
2025-01-02 02:16:32,850 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02975804:ctest-vn-92535964 virtual network link through opserver 10.0.0.46
2025-01-02 02:16:32,851 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-01-02 02:16:33,141 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-01-02 02:16:33,201 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02975804:ctest-vn-92535964', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02975804:ctest-vn-92535964?flat'}
2025-01-02 02:16:33,201 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02975804:ctest-vn-92535964 is found in opserver
2025-01-02 02:16:33,213 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 02:16:33,220 - DEBUG - VRF ids for VN ctest-vn-92535964: {}
2025-01-02 02:16:33,221 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-01-02 02:16:33,227 - DEBUG - Requesting: http://10.0.0.46:8082/domain/9d4d982e-e6c4-414d-a620-c150b0ef0aa3
2025-01-02 02:16:33,239 - DEBUG - Requesting: http://10.0.0.46:8082/project/cb40639d-7d1d-41bc-9d45-e72c0a24c3d8
2025-01-02 02:16:33,310 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/4decb39b-b262-4c57-b395-acdaee8db9ce
2025-01-02 02:16:33,321 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/4decb39b-b262-4c57-b395-acdaee8db9ce
2025-01-02 02:16:33,330 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/23aa1ef6-2e78-4ddc-a648-85f04596f688
2025-01-02 02:16:33,337 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/23aa1ef6-2e78-4ddc-a648-85f04596f688
2025-01-02 02:16:33,344 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/c34e0d2a-8ea2-4138-a5fa-494d9ee56000
2025-01-02 02:16:33,350 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 02:16:33,350 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/4decb39b-b262-4c57-b395-acdaee8db9ce
2025-01-02 02:16:33,358 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/23aa1ef6-2e78-4ddc-a648-85f04596f688
2025-01-02 02:16:33,371 - INFO - Verified VN network id 9 for VN 4decb39b-b262-4c57-b395-acdaee8db9ce
2025-01-02 02:16:33,371 - INFO - Verifications in API Server for VN ctest-vn-78261722 passed
2025-01-02 02:16:33,371 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/4decb39b-b262-4c57-b395-acdaee8db9ce
2025-01-02 02:16:33,380 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/23aa1ef6-2e78-4ddc-a648-85f04596f688
2025-01-02 02:16:33,387 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/23aa1ef6-2e78-4ddc-a648-85f04596f688
2025-01-02 02:16:33,394 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/c34e0d2a-8ea2-4138-a5fa-494d9ee56000
2025-01-02 02:16:33,407 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02975804:ctest-vn-78261722', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02975804', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5615060316718255191', 'uuid-lslong': '12940439160624101838'}, 'enable': 'true', 'created': '2025-01-02T02:16:31', 'last-modified': '2025-01-02T02:16:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.353068'}
2025-01-02 02:16:33,414 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 02:16:33,414 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78261722 passed
2025-01-02 02:16:33,414 - DEBUG - ====Verifying policy data for ctest-vn-78261722 in API_Server ======
2025-01-02 02:16:33,414 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-01-02 02:16:33,420 - DEBUG - Requesting: http://10.0.0.46:8082/domain/9d4d982e-e6c4-414d-a620-c150b0ef0aa3
2025-01-02 02:16:33,432 - DEBUG - Requesting: http://10.0.0.46:8082/project/cb40639d-7d1d-41bc-9d45-e72c0a24c3d8
2025-01-02 02:16:33,501 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/4decb39b-b262-4c57-b395-acdaee8db9ce
2025-01-02 02:16:33,510 - DEBUG - ==>Verifying data for policy with id: c24f1577-5490-4e22-b4bb-b7c2ca6d8171, fqn: ['default-domain', 'ctest-TestBasicPolicy-02975804', 'ctest-policy-allow-all-52504965']
2025-01-02 02:16:33,510 - INFO - VN ctest-vn-78261722 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 02:16:33,510 - DEBUG - Verifying the vn in opserver
2025-01-02 02:16:33,510 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02975804:ctest-vn-78261722 virtual network link through opserver 10.0.0.46
2025-01-02 02:16:33,510 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-01-02 02:16:33,522 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02975804:ctest-vn-78261722', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02975804:ctest-vn-78261722?flat'}
2025-01-02 02:16:33,522 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02975804:ctest-vn-78261722 is found in opserver
2025-01-02 02:16:33,534 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 02:16:33,541 - DEBUG - VRF ids for VN ctest-vn-78261722: {}
2025-01-02 02:16:33,598 - DEBUG - Services list from nova: [