2025-04-28 17:49:57,446 - INFO - Domain Default found not creating
2025-04-28 17:49:57,562 - INFO - Project ctest-TestBasicPolicy-98668826 not found, creating it
2025-04-28 17:49:58,005 - INFO - Created Project:ctest-TestBasicPolicy-98668826, ID : 2c6031d8-1ded-43cc-bb53-ca0d9416fbeb
2025-04-28 17:49:59,211 - INFO - ================================================================================
2025-04-28 17:49:59,211 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-28 17:49:59,211 - 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-04-28 17:49:59,459 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-28 17:49:59,459 - INFO - Initial checks done. Running the testcase now
2025-04-28 17:49:59,459 - INFO -
2025-04-28 17:49:59,984 - DEBUG - Response for create_network : {'network': {'id': '81492c90-cbbf-4a81-8ef5-e2b32b3f0d1d', 'name': 'ctest-vn-07979259', 'tenant_id': '2c6031d81ded43ccbb53ca0d9416fbeb', 'project_id': '2c6031d81ded43ccbb53ca0d9416fbeb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98668826', 'ctest-vn-07979259'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 17:50:00,136 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9d0d1cc-2c94-474e-bae0-9cc8005ad51a', 'name': '', 'tenant_id': '2c6031d81ded43ccbb53ca0d9416fbeb', 'network_id': '81492c90-cbbf-4a81-8ef5-e2b32b3f0d1d', 'ip_version': 4, 'cidr': '133.247.6.128/26', 'allocation_pools': [{'start': '133.247.6.130', 'end': '133.247.6.190'}], 'gateway_ip': '133.247.6.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.247.6.130', 'tags': [], 'project_id': '2c6031d81ded43ccbb53ca0d9416fbeb'}}
2025-04-28 17:50:00,151 - INFO - Created VN ctest-vn-07979259
2025-04-28 17:50:00,206 - DEBUG - VN ctest-vn-07979259 UUID is 81492c90-cbbf-4a81-8ef5-e2b32b3f0d1d
2025-04-28 17:50:00,503 - DEBUG - Response for create_network : {'network': {'id': 'fe55b992-105f-4d06-8920-8b9c33c4a68a', 'name': 'ctest-vn-19479336', 'tenant_id': '2c6031d81ded43ccbb53ca0d9416fbeb', 'project_id': '2c6031d81ded43ccbb53ca0d9416fbeb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98668826', 'ctest-vn-19479336'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 17:50:00,645 - DEBUG - Response for create_subnet : {'subnet': {'id': '78b0243c-f981-4ab3-9084-a5e7f7990d2d', 'name': '', 'tenant_id': '2c6031d81ded43ccbb53ca0d9416fbeb', 'network_id': 'fe55b992-105f-4d06-8920-8b9c33c4a68a', 'ip_version': 4, 'cidr': '163.206.229.128/26', 'allocation_pools': [{'start': '163.206.229.130', 'end': '163.206.229.190'}], 'gateway_ip': '163.206.229.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.206.229.130', 'tags': [], 'project_id': '2c6031d81ded43ccbb53ca0d9416fbeb'}}
2025-04-28 17:50:00,659 - INFO - Created VN ctest-vn-19479336
2025-04-28 17:50:00,710 - DEBUG - VN ctest-vn-19479336 UUID is fe55b992-105f-4d06-8920-8b9c33c4a68a
2025-04-28 17:50:00,854 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98668826:ctest-vn-07979259, 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-98668826:ctest-vn-19479336, 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-04-28 17:50:01,128 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81492c90-cbbf-4a81-8ef5-e2b32b3f0d1d', 'name': 'ctest-vn-07979259', 'tenant_id': '2c6031d81ded43ccbb53ca0d9416fbeb', 'project_id': '2c6031d81ded43ccbb53ca0d9416fbeb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f9d0d1cc-2c94-474e-bae0-9cc8005ad51a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98668826', 'ctest-vn-07979259'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98668826', 'ctest-policy-allow-all-49230182']], 'subnet_ipam': [{'subnet_cidr': '133.247.6.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 17:50:01,346 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe55b992-105f-4d06-8920-8b9c33c4a68a', 'name': 'ctest-vn-19479336', 'tenant_id': '2c6031d81ded43ccbb53ca0d9416fbeb', 'project_id': '2c6031d81ded43ccbb53ca0d9416fbeb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78b0243c-f981-4ab3-9084-a5e7f7990d2d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98668826', 'ctest-vn-19479336'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98668826', 'ctest-policy-allow-all-49230182']], 'subnet_ipam': [{'subnet_cidr': '163.206.229.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 17:50:01,510 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 17:50:01,767 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 17:50:01,793 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dad70e78-9a8f-428b-b604-d52c05610969
2025-04-28 17:50:01,805 - DEBUG - Requesting: http://10.0.0.254:8082/project/2c6031d8-1ded-43cc-bb53-ca0d9416fbeb
2025-04-28 17:50:01,878 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/81492c90-cbbf-4a81-8ef5-e2b32b3f0d1d
2025-04-28 17:50:01,888 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/81492c90-cbbf-4a81-8ef5-e2b32b3f0d1d
2025-04-28 17:50:01,897 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a96cb256-462f-4827-b5df-251439bed29c
2025-04-28 17:50:01,903 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a96cb256-462f-4827-b5df-251439bed29c
2025-04-28 17:50:01,909 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ca56310f-3ba6-4798-aadd-dd0a55ac16c9
2025-04-28 17:50:01,915 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 17:50:01,915 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/81492c90-cbbf-4a81-8ef5-e2b32b3f0d1d
2025-04-28 17:50:01,924 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a96cb256-462f-4827-b5df-251439bed29c
2025-04-28 17:50:01,935 - INFO - Verified VN network id 9 for VN 81492c90-cbbf-4a81-8ef5-e2b32b3f0d1d
2025-04-28 17:50:01,935 - INFO - Verifications in API Server for VN ctest-vn-07979259 passed
2025-04-28 17:50:01,935 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/81492c90-cbbf-4a81-8ef5-e2b32b3f0d1d
2025-04-28 17:50:01,942 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a96cb256-462f-4827-b5df-251439bed29c
2025-04-28 17:50:01,948 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a96cb256-462f-4827-b5df-251439bed29c
2025-04-28 17:50:01,954 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ca56310f-3ba6-4798-aadd-dd0a55ac16c9
2025-04-28 17:50:01,964 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98668826:ctest-vn-07979259', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98668826', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9316026304597805697', 'uuid-lslong': '10301388981832453405'}, 'enable': 'true', 'created': '2025-04-28T17:49:59', 'last-modified': '2025-04-28T17:50:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.853956'}
2025-04-28 17:50:01,969 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 17:50:01,970 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07979259 passed
2025-04-28 17:50:01,970 - DEBUG - ====Verifying policy data for ctest-vn-07979259 in API_Server ======
2025-04-28 17:50:01,970 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 17:50:01,974 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dad70e78-9a8f-428b-b604-d52c05610969
2025-04-28 17:50:01,983 - DEBUG - Requesting: http://10.0.0.254:8082/project/2c6031d8-1ded-43cc-bb53-ca0d9416fbeb
2025-04-28 17:50:02,052 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/81492c90-cbbf-4a81-8ef5-e2b32b3f0d1d
2025-04-28 17:50:02,060 - DEBUG - ==>Verifying data for policy with id: 36505d01-bf44-4ef2-a184-9ce965261db9, fqn: ['default-domain', 'ctest-TestBasicPolicy-98668826', 'ctest-policy-allow-all-49230182']
2025-04-28 17:50:02,060 - INFO - VN ctest-vn-07979259 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 17:50:02,060 - DEBUG - Verifying the vn in opserver
2025-04-28 17:50:02,060 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98668826:ctest-vn-07979259 virtual network link through opserver 10.0.0.254
2025-04-28 17:50:02,061 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-28 17:50:02,317 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-28 17:50:02,362 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98668826:ctest-vn-07979259', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98668826:ctest-vn-07979259?flat'}
2025-04-28 17:50:02,362 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98668826:ctest-vn-07979259 is found in opserver
2025-04-28 17:50:02,380 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 17:50:02,386 - DEBUG - VRF ids for VN ctest-vn-07979259: {}
2025-04-28 17:50:02,386 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 17:50:02,392 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dad70e78-9a8f-428b-b604-d52c05610969
2025-04-28 17:50:02,406 - DEBUG - Requesting: http://10.0.0.254:8082/project/2c6031d8-1ded-43cc-bb53-ca0d9416fbeb
2025-04-28 17:50:02,484 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fe55b992-105f-4d06-8920-8b9c33c4a68a
2025-04-28 17:50:02,497 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fe55b992-105f-4d06-8920-8b9c33c4a68a
2025-04-28 17:50:02,507 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1425a7b3-cf51-490f-be33-fbf3abf3daec
2025-04-28 17:50:02,514 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1425a7b3-cf51-490f-be33-fbf3abf3daec
2025-04-28 17:50:02,520 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c53c2267-62e9-4d98-8281-8bae2f4f4857
2025-04-28 17:50:02,525 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 17:50:02,525 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fe55b992-105f-4d06-8920-8b9c33c4a68a
2025-04-28 17:50:02,533 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1425a7b3-cf51-490f-be33-fbf3abf3daec
2025-04-28 17:50:02,544 - INFO - Verified VN network id 10 for VN fe55b992-105f-4d06-8920-8b9c33c4a68a
2025-04-28 17:50:02,544 - INFO - Verifications in API Server for VN ctest-vn-19479336 passed
2025-04-28 17:50:02,544 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fe55b992-105f-4d06-8920-8b9c33c4a68a
2025-04-28 17:50:02,551 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1425a7b3-cf51-490f-be33-fbf3abf3daec
2025-04-28 17:50:02,557 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1425a7b3-cf51-490f-be33-fbf3abf3daec
2025-04-28 17:50:02,562 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c53c2267-62e9-4d98-8281-8bae2f4f4857
2025-04-28 17:50:02,571 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98668826:ctest-vn-19479336', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98668826', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18326758295645146374', 'uuid-lslong': '9881051085450552970'}, 'enable': 'true', 'created': '2025-04-28T17:50:00', 'last-modified': '2025-04-28T17:50:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.241570'}
2025-04-28 17:50:02,576 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 17:50:02,577 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19479336 passed
2025-04-28 17:50:02,577 - DEBUG - ====Verifying policy data for ctest-vn-19479336 in API_Server ======
2025-04-28 17:50:02,577 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 17:50:02,581 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dad70e78-9a8f-428b-b604-d52c05610969
2025-04-28 17:50:02,590 - DEBUG - Requesting: http://10.0.0.254:8082/project/2c6031d8-1ded-43cc-bb53-ca0d9416fbeb
2025-04-28 17:50:02,661 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fe55b992-105f-4d06-8920-8b9c33c4a68a
2025-04-28 17:50:02,669 - DEBUG - ==>Verifying data for policy with id: 36505d01-bf44-4ef2-a184-9ce965261db9, fqn: ['default-domain', 'ctest-TestBasicPolicy-98668826', 'ctest-policy-allow-all-49230182']
2025-04-28 17:50:02,669 - INFO - VN ctest-vn-19479336 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 17:50:02,669 - DEBUG - Verifying the vn in opserver
2025-04-28 17:50:02,669 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98668826:ctest-vn-19479336 virtual network link through opserver 10.0.0.254
2025-04-28 17:50:02,669 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-28 17:50:02,678 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98668826:ctest-vn-19479336', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98668826:ctest-vn-19479336?flat'}
2025-04-28 17:50:02,678 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98668826:ctest-vn-19479336 is found in opserver
2025-04-28 17:50:02,687 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 17:50:02,691 - DEBUG - VRF ids for VN ctest-vn-19479336: {}
2025-04-28 17:50:02,737 - DEBUG - Services list from nova: [