2024-08-23 21:29:06,902 - INFO - Domain Default found not creating
2024-08-23 21:29:07,069 - INFO - Project ctest-TestBasicPolicy-89142478 not found, creating it
2024-08-23 21:29:07,543 - INFO - Created Project:ctest-TestBasicPolicy-89142478, ID : 501f9c58-d976-47d3-a81e-9b5ee866948e
2024-08-23 21:29:09,066 - INFO - ================================================================================
2024-08-23 21:29:09,067 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-23 21:29:09,067 - 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-08-23 21:29:09,323 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.7': '0'}} with
2024-08-23 21:29:09,323 - INFO - Initial checks done. Running the testcase now
2024-08-23 21:29:09,323 - INFO -
2024-08-23 21:29:09,884 - DEBUG - Response for create_network : {'network': {'id': 'bd6dd60c-f3d2-4b03-ad46-9e733ddc748a', 'name': 'ctest-vn-54096465', 'tenant_id': '501f9c58d97647d3a81e9b5ee866948e', 'project_id': '501f9c58d97647d3a81e9b5ee866948e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89142478', 'ctest-vn-54096465'], 'port_security_enabled': True, 'description': ''}}
2024-08-23 21:29:10,116 - DEBUG - Response for create_subnet : {'subnet': {'id': '5fc1d5ea-0f46-45fa-a883-8a269d4d3f38', 'name': '', 'tenant_id': '501f9c58d97647d3a81e9b5ee866948e', 'network_id': 'bd6dd60c-f3d2-4b03-ad46-9e733ddc748a', 'ip_version': 4, 'cidr': '126.59.107.128/26', 'allocation_pools': [{'start': '126.59.107.130', 'end': '126.59.107.190'}], 'gateway_ip': '126.59.107.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.59.107.130', 'tags': [], 'project_id': '501f9c58d97647d3a81e9b5ee866948e'}}
2024-08-23 21:29:10,136 - INFO - Created VN ctest-vn-54096465
2024-08-23 21:29:10,189 - DEBUG - VN ctest-vn-54096465 UUID is bd6dd60c-f3d2-4b03-ad46-9e733ddc748a
2024-08-23 21:29:10,481 - DEBUG - Response for create_network : {'network': {'id': 'd7e2bc8a-69b3-44e8-928f-a05f9d0f30a0', 'name': 'ctest-vn-81943293', 'tenant_id': '501f9c58d97647d3a81e9b5ee866948e', 'project_id': '501f9c58d97647d3a81e9b5ee866948e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89142478', 'ctest-vn-81943293'], 'port_security_enabled': True, 'description': ''}}
2024-08-23 21:29:10,697 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc67ffcb-d2b4-4a6d-9451-1ef2bd20aecc', 'name': '', 'tenant_id': '501f9c58d97647d3a81e9b5ee866948e', 'network_id': 'd7e2bc8a-69b3-44e8-928f-a05f9d0f30a0', 'ip_version': 4, 'cidr': '79.37.58.128/26', 'allocation_pools': [{'start': '79.37.58.130', 'end': '79.37.58.190'}], 'gateway_ip': '79.37.58.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.37.58.130', 'tags': [], 'project_id': '501f9c58d97647d3a81e9b5ee866948e'}}
2024-08-23 21:29:10,719 - INFO - Created VN ctest-vn-81943293
2024-08-23 21:29:10,773 - DEBUG - VN ctest-vn-81943293 UUID is d7e2bc8a-69b3-44e8-928f-a05f9d0f30a0
2024-08-23 21:29:10,892 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-54096465, 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-89142478:ctest-vn-81943293, 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-08-23 21:29:11,189 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd6dd60c-f3d2-4b03-ad46-9e733ddc748a', 'name': 'ctest-vn-54096465', 'tenant_id': '501f9c58d97647d3a81e9b5ee866948e', 'project_id': '501f9c58d97647d3a81e9b5ee866948e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5fc1d5ea-0f46-45fa-a883-8a269d4d3f38'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89142478', 'ctest-vn-54096465'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89142478', 'ctest-policy-allow-all-48654223']], 'subnet_ipam': [{'subnet_cidr': '126.59.107.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-23 21:29:11,428 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd7e2bc8a-69b3-44e8-928f-a05f9d0f30a0', 'name': 'ctest-vn-81943293', 'tenant_id': '501f9c58d97647d3a81e9b5ee866948e', 'project_id': '501f9c58d97647d3a81e9b5ee866948e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc67ffcb-d2b4-4a6d-9451-1ef2bd20aecc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89142478', 'ctest-vn-81943293'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89142478', 'ctest-policy-allow-all-48654223']], 'subnet_ipam': [{'subnet_cidr': '79.37.58.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-23 21:29:11,577 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-23 21:29:11,876 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-23 21:29:11,909 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a5fcbba1-d82f-42a0-a56e-a8685566f46e
2024-08-23 21:29:11,924 - DEBUG - Requesting: http://10.0.0.36:8082/project/501f9c58-d976-47d3-a81e-9b5ee866948e
2024-08-23 21:29:11,996 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/bd6dd60c-f3d2-4b03-ad46-9e733ddc748a
2024-08-23 21:29:12,006 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/bd6dd60c-f3d2-4b03-ad46-9e733ddc748a
2024-08-23 21:29:12,015 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a67c6ae3-fcbb-435f-95d1-97dedf379fbf
2024-08-23 21:29:12,024 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a67c6ae3-fcbb-435f-95d1-97dedf379fbf
2024-08-23 21:29:12,033 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/1ea7103a-5dbf-4d2d-8453-33c6b7cfa71a
2024-08-23 21:29:12,042 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-23 21:29:12,043 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/bd6dd60c-f3d2-4b03-ad46-9e733ddc748a
2024-08-23 21:29:12,060 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a67c6ae3-fcbb-435f-95d1-97dedf379fbf
2024-08-23 21:29:12,080 - INFO - Verified VN network id 8 for VN bd6dd60c-f3d2-4b03-ad46-9e733ddc748a
2024-08-23 21:29:12,080 - INFO - Verifications in API Server for VN ctest-vn-54096465 passed
2024-08-23 21:29:12,080 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/bd6dd60c-f3d2-4b03-ad46-9e733ddc748a
2024-08-23 21:29:12,092 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a67c6ae3-fcbb-435f-95d1-97dedf379fbf
2024-08-23 21:29:12,100 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a67c6ae3-fcbb-435f-95d1-97dedf379fbf
2024-08-23 21:29:12,109 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/1ea7103a-5dbf-4d2d-8453-33c6b7cfa71a
2024-08-23 21:29:12,124 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-54096465', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89142478', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13649801396748438275', 'uuid-lslong': '12485841234727564426'}, 'enable': 'true', 'created': '2024-08-23T21:29:09', 'last-modified': '2024-08-23T21:29:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.958283'}
2024-08-23 21:29:12,133 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-23 21:29:12,133 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54096465 passed
2024-08-23 21:29:12,134 - DEBUG - ====Verifying policy data for ctest-vn-54096465 in API_Server ======
2024-08-23 21:29:12,134 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-23 21:29:12,142 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a5fcbba1-d82f-42a0-a56e-a8685566f46e
2024-08-23 21:29:12,159 - DEBUG - Requesting: http://10.0.0.36:8082/project/501f9c58-d976-47d3-a81e-9b5ee866948e
2024-08-23 21:29:12,229 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/bd6dd60c-f3d2-4b03-ad46-9e733ddc748a
2024-08-23 21:29:12,238 - DEBUG - ==>Verifying data for policy with id: eb0b5f52-388f-4c2e-b78b-17d01fee2385, fqn: ['default-domain', 'ctest-TestBasicPolicy-89142478', 'ctest-policy-allow-all-48654223']
2024-08-23 21:29:12,238 - INFO - VN ctest-vn-54096465 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-23 21:29:12,238 - DEBUG - Verifying the vn in opserver
2024-08-23 21:29:12,239 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-54096465 virtual network link through opserver 10.0.0.36
2024-08-23 21:29:12,239 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-08-23 21:29:12,534 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-08-23 21:29:12,596 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-54096465', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-54096465?flat'}
2024-08-23 21:29:12,596 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-54096465 is found in opserver
2024-08-23 21:29:12,607 - DEBUG - Do not have enough data to verify VN in agent
2024-08-23 21:29:12,612 - DEBUG - VRF ids for VN ctest-vn-54096465: {}
2024-08-23 21:29:12,612 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-23 21:29:12,619 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a5fcbba1-d82f-42a0-a56e-a8685566f46e
2024-08-23 21:29:12,632 - DEBUG - Requesting: http://10.0.0.36:8082/project/501f9c58-d976-47d3-a81e-9b5ee866948e
2024-08-23 21:29:12,702 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/d7e2bc8a-69b3-44e8-928f-a05f9d0f30a0
2024-08-23 21:29:12,714 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/d7e2bc8a-69b3-44e8-928f-a05f9d0f30a0
2024-08-23 21:29:12,724 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/21493a8d-f00c-4bc4-951f-4d14a0363d3a
2024-08-23 21:29:12,732 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/21493a8d-f00c-4bc4-951f-4d14a0363d3a
2024-08-23 21:29:12,740 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/98b42085-ee6e-4952-a9b1-d7004a372b34
2024-08-23 21:29:12,748 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-23 21:29:12,748 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/d7e2bc8a-69b3-44e8-928f-a05f9d0f30a0
2024-08-23 21:29:12,759 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/21493a8d-f00c-4bc4-951f-4d14a0363d3a
2024-08-23 21:29:12,774 - INFO - Verified VN network id 9 for VN d7e2bc8a-69b3-44e8-928f-a05f9d0f30a0
2024-08-23 21:29:12,774 - INFO - Verifications in API Server for VN ctest-vn-81943293 passed
2024-08-23 21:29:12,774 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/d7e2bc8a-69b3-44e8-928f-a05f9d0f30a0
2024-08-23 21:29:12,784 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/21493a8d-f00c-4bc4-951f-4d14a0363d3a
2024-08-23 21:29:12,791 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/21493a8d-f00c-4bc4-951f-4d14a0363d3a
2024-08-23 21:29:12,799 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/98b42085-ee6e-4952-a9b1-d7004a372b34
2024-08-23 21:29:12,812 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-81943293', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89142478', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15556203365555979496', 'uuid-lslong': '10560835983724458144'}, 'enable': 'true', 'created': '2024-08-23T21:29:10', 'last-modified': '2024-08-23T21:29:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.406912'}
2024-08-23 21:29:12,819 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-23 21:29:12,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81943293 passed
2024-08-23 21:29:12,819 - DEBUG - ====Verifying policy data for ctest-vn-81943293 in API_Server ======
2024-08-23 21:29:12,820 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-23 21:29:12,826 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a5fcbba1-d82f-42a0-a56e-a8685566f46e
2024-08-23 21:29:12,839 - DEBUG - Requesting: http://10.0.0.36:8082/project/501f9c58-d976-47d3-a81e-9b5ee866948e
2024-08-23 21:29:12,919 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/d7e2bc8a-69b3-44e8-928f-a05f9d0f30a0
2024-08-23 21:29:12,929 - DEBUG - ==>Verifying data for policy with id: eb0b5f52-388f-4c2e-b78b-17d01fee2385, fqn: ['default-domain', 'ctest-TestBasicPolicy-89142478', 'ctest-policy-allow-all-48654223']
2024-08-23 21:29:12,929 - INFO - VN ctest-vn-81943293 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-23 21:29:12,929 - DEBUG - Verifying the vn in opserver
2024-08-23 21:29:12,929 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-81943293 virtual network link through opserver 10.0.0.36
2024-08-23 21:29:12,929 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-08-23 21:29:12,941 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-81943293', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-81943293?flat'}
2024-08-23 21:29:12,941 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-81943293 is found in opserver
2024-08-23 21:29:12,952 - DEBUG - Do not have enough data to verify VN in agent
2024-08-23 21:29:12,957 - DEBUG - VRF ids for VN ctest-vn-81943293: {}
2024-08-23 21:29:13,014 - DEBUG - Services list from nova: [