2024-10-28 02:20:30,768 - INFO - Domain Default found not creating
2024-10-28 02:20:30,970 - INFO - Project ctest-TestBasicPolicy-01294734 not found, creating it
2024-10-28 02:20:31,487 - INFO - Created Project:ctest-TestBasicPolicy-01294734, ID : 36d13037-5f67-418e-82c3-807c01dd76b5
2024-10-28 02:20:33,247 - INFO - ================================================================================
2024-10-28 02:20:33,247 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-28 02:20:33,247 - 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
2024-10-28 02:20:33,522 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.13': '0'}} with
2024-10-28 02:20:33,522 - INFO - Initial checks done. Running the testcase now
2024-10-28 02:20:33,522 - INFO -
2024-10-28 02:20:34,166 - DEBUG - Response for create_network : {'network': {'id': 'd69e702c-a665-4639-8a9f-8803fb83516a', 'name': 'ctest-vn-28387409', 'tenant_id': '36d130375f67418e82c3807c01dd76b5', 'project_id': '36d130375f67418e82c3807c01dd76b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01294734', 'ctest-vn-28387409'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 02:20:34,339 - DEBUG - Response for create_subnet : {'subnet': {'id': '69a4edc4-fe35-43bb-96ce-0198ac34d4c5', 'name': '', 'tenant_id': '36d130375f67418e82c3807c01dd76b5', 'network_id': 'd69e702c-a665-4639-8a9f-8803fb83516a', 'ip_version': 4, 'cidr': '129.44.78.0/26', 'allocation_pools': [{'start': '129.44.78.2', 'end': '129.44.78.62'}], 'gateway_ip': '129.44.78.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.44.78.2', 'tags': [], 'project_id': '36d130375f67418e82c3807c01dd76b5'}}
2024-10-28 02:20:34,362 - INFO - Created VN ctest-vn-28387409
2024-10-28 02:20:34,416 - DEBUG - VN ctest-vn-28387409 UUID is d69e702c-a665-4639-8a9f-8803fb83516a
2024-10-28 02:20:34,756 - DEBUG - Response for create_network : {'network': {'id': '82ff9f38-fe89-4f45-ab4d-07eb8f43370d', 'name': 'ctest-vn-82277318', 'tenant_id': '36d130375f67418e82c3807c01dd76b5', 'project_id': '36d130375f67418e82c3807c01dd76b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01294734', 'ctest-vn-82277318'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 02:20:34,987 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc26a80c-ee0e-4ba2-bf82-41a225a1bf15', 'name': '', 'tenant_id': '36d130375f67418e82c3807c01dd76b5', 'network_id': '82ff9f38-fe89-4f45-ab4d-07eb8f43370d', 'ip_version': 4, 'cidr': '182.119.253.64/26', 'allocation_pools': [{'start': '182.119.253.66', 'end': '182.119.253.126'}], 'gateway_ip': '182.119.253.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.119.253.66', 'tags': [], 'project_id': '36d130375f67418e82c3807c01dd76b5'}}
2024-10-28 02:20:35,018 - INFO - Created VN ctest-vn-82277318
2024-10-28 02:20:35,072 - DEBUG - VN ctest-vn-82277318 UUID is 82ff9f38-fe89-4f45-ab4d-07eb8f43370d
2024-10-28 02:20:35,220 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-28387409, 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-01294734:ctest-vn-82277318, 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]
2024-10-28 02:20:35,570 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd69e702c-a665-4639-8a9f-8803fb83516a', 'name': 'ctest-vn-28387409', 'tenant_id': '36d130375f67418e82c3807c01dd76b5', 'project_id': '36d130375f67418e82c3807c01dd76b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['69a4edc4-fe35-43bb-96ce-0198ac34d4c5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01294734', 'ctest-vn-28387409'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01294734', 'ctest-policy-allow-all-25357112']], 'subnet_ipam': [{'subnet_cidr': '129.44.78.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 02:20:35,902 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '82ff9f38-fe89-4f45-ab4d-07eb8f43370d', 'name': 'ctest-vn-82277318', 'tenant_id': '36d130375f67418e82c3807c01dd76b5', 'project_id': '36d130375f67418e82c3807c01dd76b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc26a80c-ee0e-4ba2-bf82-41a225a1bf15'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01294734', 'ctest-vn-82277318'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01294734', 'ctest-policy-allow-all-25357112']], 'subnet_ipam': [{'subnet_cidr': '182.119.253.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 02:20:36,068 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-10-28 02:20:36,551 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-10-28 02:20:36,600 - DEBUG - Requesting: http://10.0.0.42:8082/domain/80462946-db05-473a-912b-5ba74f83468f
2024-10-28 02:20:36,622 - DEBUG - Requesting: http://10.0.0.42:8082/project/36d13037-5f67-418e-82c3-807c01dd76b5
2024-10-28 02:20:36,702 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d69e702c-a665-4639-8a9f-8803fb83516a
2024-10-28 02:20:36,715 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d69e702c-a665-4639-8a9f-8803fb83516a
2024-10-28 02:20:36,727 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b76b7889-848b-4bdc-8c28-b13be29542a2
2024-10-28 02:20:36,736 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b76b7889-848b-4bdc-8c28-b13be29542a2
2024-10-28 02:20:36,744 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/a71e256e-bbbc-49ae-b669-90ddc8a6c375
2024-10-28 02:20:36,752 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 02:20:36,752 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d69e702c-a665-4639-8a9f-8803fb83516a
2024-10-28 02:20:36,763 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b76b7889-848b-4bdc-8c28-b13be29542a2
2024-10-28 02:20:36,781 - INFO - Verified VN network id 8 for VN d69e702c-a665-4639-8a9f-8803fb83516a
2024-10-28 02:20:36,781 - INFO - Verifications in API Server for VN ctest-vn-28387409 passed
2024-10-28 02:20:36,782 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d69e702c-a665-4639-8a9f-8803fb83516a
2024-10-28 02:20:36,793 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b76b7889-848b-4bdc-8c28-b13be29542a2
2024-10-28 02:20:36,803 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b76b7889-848b-4bdc-8c28-b13be29542a2
2024-10-28 02:20:36,812 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/a71e256e-bbbc-49ae-b669-90ddc8a6c375
2024-10-28 02:20:36,829 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-28387409', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01294734', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15464921507509388857', 'uuid-lslong': '9988852049217016170'}, 'enable': 'true', 'created': '2024-10-28T02:20:34', 'last-modified': '2024-10-28T02:20:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.297216'}
2024-10-28 02:20:36,836 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 02:20:36,837 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28387409 passed
2024-10-28 02:20:36,837 - DEBUG - ====Verifying policy data for ctest-vn-28387409 in API_Server ======
2024-10-28 02:20:36,837 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-10-28 02:20:36,845 - DEBUG - Requesting: http://10.0.0.42:8082/domain/80462946-db05-473a-912b-5ba74f83468f
2024-10-28 02:20:36,863 - DEBUG - Requesting: http://10.0.0.42:8082/project/36d13037-5f67-418e-82c3-807c01dd76b5
2024-10-28 02:20:36,941 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d69e702c-a665-4639-8a9f-8803fb83516a
2024-10-28 02:20:36,953 - DEBUG - ==>Verifying data for policy with id: ca149106-8c79-49fc-a7f2-9a483c7076a7, fqn: ['default-domain', 'ctest-TestBasicPolicy-01294734', 'ctest-policy-allow-all-25357112']
2024-10-28 02:20:36,954 - INFO - VN ctest-vn-28387409 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 02:20:36,954 - DEBUG - Verifying the vn in opserver
2024-10-28 02:20:36,954 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-28387409 virtual network link through opserver 10.0.0.42
2024-10-28 02:20:36,954 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-10-28 02:20:37,295 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-10-28 02:20:37,367 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-28387409', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-28387409?flat'}
2024-10-28 02:20:37,367 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-28387409 is found in opserver
2024-10-28 02:20:37,380 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 02:20:37,387 - DEBUG - VRF ids for VN ctest-vn-28387409: {}
2024-10-28 02:20:37,387 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-10-28 02:20:37,396 - DEBUG - Requesting: http://10.0.0.42:8082/domain/80462946-db05-473a-912b-5ba74f83468f
2024-10-28 02:20:37,411 - DEBUG - Requesting: http://10.0.0.42:8082/project/36d13037-5f67-418e-82c3-807c01dd76b5
2024-10-28 02:20:37,498 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/82ff9f38-fe89-4f45-ab4d-07eb8f43370d
2024-10-28 02:20:37,513 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/82ff9f38-fe89-4f45-ab4d-07eb8f43370d
2024-10-28 02:20:37,526 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3098fcab-1883-4307-8917-3f2f9f398143
2024-10-28 02:20:37,536 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3098fcab-1883-4307-8917-3f2f9f398143
2024-10-28 02:20:37,544 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/ae34dd49-e073-48df-8d5f-7d1af764f526
2024-10-28 02:20:37,552 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 02:20:37,552 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/82ff9f38-fe89-4f45-ab4d-07eb8f43370d
2024-10-28 02:20:37,566 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3098fcab-1883-4307-8917-3f2f9f398143
2024-10-28 02:20:37,585 - INFO - Verified VN network id 9 for VN 82ff9f38-fe89-4f45-ab4d-07eb8f43370d
2024-10-28 02:20:37,585 - INFO - Verifications in API Server for VN ctest-vn-82277318 passed
2024-10-28 02:20:37,585 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/82ff9f38-fe89-4f45-ab4d-07eb8f43370d
2024-10-28 02:20:37,598 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3098fcab-1883-4307-8917-3f2f9f398143
2024-10-28 02:20:37,607 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3098fcab-1883-4307-8917-3f2f9f398143
2024-10-28 02:20:37,616 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/ae34dd49-e073-48df-8d5f-7d1af764f526
2024-10-28 02:20:37,631 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-82277318', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01294734', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9439438411129245509', 'uuid-lslong': '12343530861994653453'}, 'enable': 'true', 'created': '2024-10-28T02:20:34', 'last-modified': '2024-10-28T02:20:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.807184'}
2024-10-28 02:20:37,638 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 02:20:37,639 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82277318 passed
2024-10-28 02:20:37,639 - DEBUG - ====Verifying policy data for ctest-vn-82277318 in API_Server ======
2024-10-28 02:20:37,639 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-10-28 02:20:37,647 - DEBUG - Requesting: http://10.0.0.42:8082/domain/80462946-db05-473a-912b-5ba74f83468f
2024-10-28 02:20:37,664 - DEBUG - Requesting: http://10.0.0.42:8082/project/36d13037-5f67-418e-82c3-807c01dd76b5
2024-10-28 02:20:37,741 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/82ff9f38-fe89-4f45-ab4d-07eb8f43370d
2024-10-28 02:20:37,751 - DEBUG - ==>Verifying data for policy with id: ca149106-8c79-49fc-a7f2-9a483c7076a7, fqn: ['default-domain', 'ctest-TestBasicPolicy-01294734', 'ctest-policy-allow-all-25357112']
2024-10-28 02:20:37,751 - INFO - VN ctest-vn-82277318 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 02:20:37,752 - DEBUG - Verifying the vn in opserver
2024-10-28 02:20:37,752 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-82277318 virtual network link through opserver 10.0.0.42
2024-10-28 02:20:37,752 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-10-28 02:20:37,766 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-82277318', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-82277318?flat'}
2024-10-28 02:20:37,767 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-82277318 is found in opserver
2024-10-28 02:20:37,780 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 02:20:37,786 - DEBUG - VRF ids for VN ctest-vn-82277318: {}
2024-10-28 02:20:37,855 - DEBUG - Services list from nova: [