2025-01-09 02:17:04,556 - INFO - Domain Default found not creating
2025-01-09 02:17:04,745 - INFO - Project ctest-TestBasicPolicy-03243085 not found, creating it
2025-01-09 02:17:05,207 - INFO - Created Project:ctest-TestBasicPolicy-03243085, ID : 0e52fc46-cc26-4042-8ef1-633f1190f8d3
2025-01-09 02:17:06,685 - INFO - ================================================================================
2025-01-09 02:17:06,685 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-09 02:17:06,685 - 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-09 02:17:06,941 - DEBUG - Nothing to compare xmpp stats {'10.0.0.53': {'10.0.0.53': '0'}} with
2025-01-09 02:17:06,941 - INFO - Initial checks done. Running the testcase now
2025-01-09 02:17:06,941 - INFO -
2025-01-09 02:17:07,555 - DEBUG - Response for create_network : {'network': {'id': '285c7a8a-d0c7-42b0-b03c-a2ca1d1956cb', 'name': 'ctest-vn-62318506', 'tenant_id': '0e52fc46cc2640428ef1633f1190f8d3', 'project_id': '0e52fc46cc2640428ef1633f1190f8d3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03243085', 'ctest-vn-62318506'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 02:17:07,716 - DEBUG - Response for create_subnet : {'subnet': {'id': '50564c53-39d0-45a5-b680-bd25e7db13b6', 'name': '', 'tenant_id': '0e52fc46cc2640428ef1633f1190f8d3', 'network_id': '285c7a8a-d0c7-42b0-b03c-a2ca1d1956cb', 'ip_version': 4, 'cidr': '147.103.99.128/26', 'allocation_pools': [{'start': '147.103.99.130', 'end': '147.103.99.190'}], 'gateway_ip': '147.103.99.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.103.99.130', 'tags': [], 'project_id': '0e52fc46cc2640428ef1633f1190f8d3'}}
2025-01-09 02:17:07,736 - INFO - Created VN ctest-vn-62318506
2025-01-09 02:17:07,791 - DEBUG - VN ctest-vn-62318506 UUID is 285c7a8a-d0c7-42b0-b03c-a2ca1d1956cb
2025-01-09 02:17:08,088 - DEBUG - Response for create_network : {'network': {'id': '025b6fb7-39f1-4cae-ac1b-852612e6cd92', 'name': 'ctest-vn-01384017', 'tenant_id': '0e52fc46cc2640428ef1633f1190f8d3', 'project_id': '0e52fc46cc2640428ef1633f1190f8d3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03243085', 'ctest-vn-01384017'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 02:17:08,283 - DEBUG - Response for create_subnet : {'subnet': {'id': '496fb79c-d92f-4a1e-bdf5-a4156144d3d5', 'name': '', 'tenant_id': '0e52fc46cc2640428ef1633f1190f8d3', 'network_id': '025b6fb7-39f1-4cae-ac1b-852612e6cd92', 'ip_version': 4, 'cidr': '35.217.108.192/26', 'allocation_pools': [{'start': '35.217.108.194', 'end': '35.217.108.254'}], 'gateway_ip': '35.217.108.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.217.108.194', 'tags': [], 'project_id': '0e52fc46cc2640428ef1633f1190f8d3'}}
2025-01-09 02:17:08,302 - INFO - Created VN ctest-vn-01384017
2025-01-09 02:17:08,354 - DEBUG - VN ctest-vn-01384017 UUID is 025b6fb7-39f1-4cae-ac1b-852612e6cd92
2025-01-09 02:17:08,467 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03243085:ctest-vn-62318506, 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-03243085:ctest-vn-01384017, 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-09 02:17:08,773 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '285c7a8a-d0c7-42b0-b03c-a2ca1d1956cb', 'name': 'ctest-vn-62318506', 'tenant_id': '0e52fc46cc2640428ef1633f1190f8d3', 'project_id': '0e52fc46cc2640428ef1633f1190f8d3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['50564c53-39d0-45a5-b680-bd25e7db13b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03243085', 'ctest-vn-62318506'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03243085', 'ctest-policy-allow-all-26727534']], 'subnet_ipam': [{'subnet_cidr': '147.103.99.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 02:17:09,015 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '025b6fb7-39f1-4cae-ac1b-852612e6cd92', 'name': 'ctest-vn-01384017', 'tenant_id': '0e52fc46cc2640428ef1633f1190f8d3', 'project_id': '0e52fc46cc2640428ef1633f1190f8d3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['496fb79c-d92f-4a1e-bdf5-a4156144d3d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03243085', 'ctest-vn-01384017'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03243085', 'ctest-policy-allow-all-26727534']], 'subnet_ipam': [{'subnet_cidr': '35.217.108.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 02:17:09,211 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2025-01-09 02:17:09,507 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2025-01-09 02:17:09,541 - DEBUG - Requesting: http://10.0.0.53:8082/domain/1c81a2ce-5e3e-45a1-9554-609c9d414333
2025-01-09 02:17:09,558 - DEBUG - Requesting: http://10.0.0.53:8082/project/0e52fc46-cc26-4042-8ef1-633f1190f8d3
2025-01-09 02:17:09,640 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/285c7a8a-d0c7-42b0-b03c-a2ca1d1956cb
2025-01-09 02:17:09,652 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/285c7a8a-d0c7-42b0-b03c-a2ca1d1956cb
2025-01-09 02:17:09,664 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/23c17683-e1b1-4b47-9739-07cd4d9876d7
2025-01-09 02:17:09,673 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/23c17683-e1b1-4b47-9739-07cd4d9876d7
2025-01-09 02:17:09,681 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/e88449c1-04b0-41ee-89f9-8a907d5ebe79
2025-01-09 02:17:09,689 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 02:17:09,689 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/285c7a8a-d0c7-42b0-b03c-a2ca1d1956cb
2025-01-09 02:17:09,701 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/23c17683-e1b1-4b47-9739-07cd4d9876d7
2025-01-09 02:17:09,718 - INFO - Verified VN network id 8 for VN 285c7a8a-d0c7-42b0-b03c-a2ca1d1956cb
2025-01-09 02:17:09,718 - INFO - Verifications in API Server for VN ctest-vn-62318506 passed
2025-01-09 02:17:09,718 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/285c7a8a-d0c7-42b0-b03c-a2ca1d1956cb
2025-01-09 02:17:09,730 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/23c17683-e1b1-4b47-9739-07cd4d9876d7
2025-01-09 02:17:09,739 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/23c17683-e1b1-4b47-9739-07cd4d9876d7
2025-01-09 02:17:09,746 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/e88449c1-04b0-41ee-89f9-8a907d5ebe79
2025-01-09 02:17:09,760 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03243085:ctest-vn-62318506', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03243085', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2908334196001292976', 'uuid-lslong': '12699204038233249483'}, 'enable': 'true', 'created': '2025-01-09T02:17:07', 'last-modified': '2025-01-09T02:17:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014386'}
2025-01-09 02:17:09,767 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 02:17:09,768 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62318506 passed
2025-01-09 02:17:09,768 - DEBUG - ====Verifying policy data for ctest-vn-62318506 in API_Server ======
2025-01-09 02:17:09,768 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2025-01-09 02:17:09,774 - DEBUG - Requesting: http://10.0.0.53:8082/domain/1c81a2ce-5e3e-45a1-9554-609c9d414333
2025-01-09 02:17:09,786 - DEBUG - Requesting: http://10.0.0.53:8082/project/0e52fc46-cc26-4042-8ef1-633f1190f8d3
2025-01-09 02:17:09,869 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/285c7a8a-d0c7-42b0-b03c-a2ca1d1956cb
2025-01-09 02:17:09,882 - DEBUG - ==>Verifying data for policy with id: f75cb968-42b9-4a7e-9b56-51449241ff19, fqn: ['default-domain', 'ctest-TestBasicPolicy-03243085', 'ctest-policy-allow-all-26727534']
2025-01-09 02:17:09,882 - INFO - VN ctest-vn-62318506 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 02:17:09,882 - DEBUG - Verifying the vn in opserver
2025-01-09 02:17:09,882 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03243085:ctest-vn-62318506 virtual network link through opserver 10.0.0.53
2025-01-09 02:17:09,882 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks
2025-01-09 02:17:10,177 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks
2025-01-09 02:17:10,240 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03243085:ctest-vn-62318506', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03243085:ctest-vn-62318506?flat'}
2025-01-09 02:17:10,241 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03243085:ctest-vn-62318506 is found in opserver
2025-01-09 02:17:10,253 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 02:17:10,258 - DEBUG - VRF ids for VN ctest-vn-62318506: {}
2025-01-09 02:17:10,259 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2025-01-09 02:17:10,266 - DEBUG - Requesting: http://10.0.0.53:8082/domain/1c81a2ce-5e3e-45a1-9554-609c9d414333
2025-01-09 02:17:10,280 - DEBUG - Requesting: http://10.0.0.53:8082/project/0e52fc46-cc26-4042-8ef1-633f1190f8d3
2025-01-09 02:17:10,363 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/025b6fb7-39f1-4cae-ac1b-852612e6cd92
2025-01-09 02:17:10,377 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/025b6fb7-39f1-4cae-ac1b-852612e6cd92
2025-01-09 02:17:10,388 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/e11c11f3-6b25-47a7-9f7b-ac675ea2ef6e
2025-01-09 02:17:10,396 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/e11c11f3-6b25-47a7-9f7b-ac675ea2ef6e
2025-01-09 02:17:10,403 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/559b962a-b35b-4174-baf9-dd74ce24e4ee
2025-01-09 02:17:10,410 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 02:17:10,410 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/025b6fb7-39f1-4cae-ac1b-852612e6cd92
2025-01-09 02:17:10,422 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/e11c11f3-6b25-47a7-9f7b-ac675ea2ef6e
2025-01-09 02:17:10,438 - INFO - Verified VN network id 9 for VN 025b6fb7-39f1-4cae-ac1b-852612e6cd92
2025-01-09 02:17:10,438 - INFO - Verifications in API Server for VN ctest-vn-01384017 passed
2025-01-09 02:17:10,438 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/025b6fb7-39f1-4cae-ac1b-852612e6cd92
2025-01-09 02:17:10,449 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/e11c11f3-6b25-47a7-9f7b-ac675ea2ef6e
2025-01-09 02:17:10,457 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/e11c11f3-6b25-47a7-9f7b-ac675ea2ef6e
2025-01-09 02:17:10,464 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/559b962a-b35b-4174-baf9-dd74ce24e4ee
2025-01-09 02:17:10,480 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03243085:ctest-vn-01384017', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03243085', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '169852243698338990', 'uuid-lslong': '12401652397467159954'}, 'enable': 'true', 'created': '2025-01-09T02:17:08', 'last-modified': '2025-01-09T02:17:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.495490'}
2025-01-09 02:17:10,487 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 02:17:10,487 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01384017 passed
2025-01-09 02:17:10,487 - DEBUG - ====Verifying policy data for ctest-vn-01384017 in API_Server ======
2025-01-09 02:17:10,487 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2025-01-09 02:17:10,495 - DEBUG - Requesting: http://10.0.0.53:8082/domain/1c81a2ce-5e3e-45a1-9554-609c9d414333
2025-01-09 02:17:10,509 - DEBUG - Requesting: http://10.0.0.53:8082/project/0e52fc46-cc26-4042-8ef1-633f1190f8d3
2025-01-09 02:17:10,592 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/025b6fb7-39f1-4cae-ac1b-852612e6cd92
2025-01-09 02:17:10,613 - DEBUG - ==>Verifying data for policy with id: f75cb968-42b9-4a7e-9b56-51449241ff19, fqn: ['default-domain', 'ctest-TestBasicPolicy-03243085', 'ctest-policy-allow-all-26727534']
2025-01-09 02:17:10,613 - INFO - VN ctest-vn-01384017 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 02:17:10,613 - DEBUG - Verifying the vn in opserver
2025-01-09 02:17:10,613 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03243085:ctest-vn-01384017 virtual network link through opserver 10.0.0.53
2025-01-09 02:17:10,613 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks
2025-01-09 02:17:10,628 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03243085:ctest-vn-01384017', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03243085:ctest-vn-01384017?flat'}
2025-01-09 02:17:10,628 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03243085:ctest-vn-01384017 is found in opserver
2025-01-09 02:17:10,642 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 02:17:10,648 - DEBUG - VRF ids for VN ctest-vn-01384017: {}
2025-01-09 02:17:10,709 - DEBUG - Services list from nova: [