2024-11-04 08:06:51,509 - INFO - Domain Default found not creating
2024-11-04 08:06:51,706 - INFO - Project ctest-TestBasicPolicy-90572806 not found, creating it
2024-11-04 08:06:52,244 - INFO - Created Project:ctest-TestBasicPolicy-90572806, ID : 8a8a981d-1e93-47cf-b2e4-fe3f45464d0e
2024-11-04 08:06:54,103 - INFO - ================================================================================
2024-11-04 08:06:54,103 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-04 08:06:54,103 - 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-11-04 08:06:54,360 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.5': '0'}} with
2024-11-04 08:06:54,360 - INFO - Initial checks done. Running the testcase now
2024-11-04 08:06:54,360 - INFO -
2024-11-04 08:06:54,935 - DEBUG - Response for create_network : {'network': {'id': '32da2bef-3b21-4e18-a545-e734fc1dd795', 'name': 'ctest-vn-23415555', 'tenant_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'project_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90572806', 'ctest-vn-23415555'], 'port_security_enabled': True, 'description': ''}}
2024-11-04 08:06:55,089 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a53ed9fa-23a9-4521-afe2-72aed8db3a73', 'name': '', 'tenant_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'network_id': '32da2bef-3b21-4e18-a545-e734fc1dd795', 'ip_version': 4, 'cidr': '54.90.238.192/26', 'allocation_pools': [{'start': '54.90.238.194', 'end': '54.90.238.254'}], 'gateway_ip': '54.90.238.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.90.238.194', 'tags': [], 'project_id': '8a8a981d1e9347cfb2e4fe3f45464d0e'}}
2024-11-04 08:06:55,109 - INFO - Created VN ctest-vn-23415555
2024-11-04 08:06:55,168 - DEBUG - VN ctest-vn-23415555 UUID is 32da2bef-3b21-4e18-a545-e734fc1dd795
2024-11-04 08:06:55,500 - DEBUG - Response for create_network : {'network': {'id': '19b44066-2aa0-419a-ad65-9045e1a02775', 'name': 'ctest-vn-34609672', 'tenant_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'project_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90572806', 'ctest-vn-34609672'], 'port_security_enabled': True, 'description': ''}}
2024-11-04 08:06:55,696 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c91a338-742f-433e-8d4a-a7ae6d665797', 'name': '', 'tenant_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'network_id': '19b44066-2aa0-419a-ad65-9045e1a02775', 'ip_version': 4, 'cidr': '106.117.84.64/26', 'allocation_pools': [{'start': '106.117.84.66', 'end': '106.117.84.126'}], 'gateway_ip': '106.117.84.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.117.84.66', 'tags': [], 'project_id': '8a8a981d1e9347cfb2e4fe3f45464d0e'}}
2024-11-04 08:06:55,719 - INFO - Created VN ctest-vn-34609672
2024-11-04 08:06:55,780 - DEBUG - VN ctest-vn-34609672 UUID is 19b44066-2aa0-419a-ad65-9045e1a02775
2024-11-04 08:06:55,908 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-23415555, 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-90572806:ctest-vn-34609672, 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-11-04 08:06:56,227 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32da2bef-3b21-4e18-a545-e734fc1dd795', 'name': 'ctest-vn-23415555', 'tenant_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'project_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a53ed9fa-23a9-4521-afe2-72aed8db3a73'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90572806', 'ctest-vn-23415555'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90572806', 'ctest-policy-allow-all-23650292']], 'subnet_ipam': [{'subnet_cidr': '54.90.238.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-04 08:06:56,537 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19b44066-2aa0-419a-ad65-9045e1a02775', 'name': 'ctest-vn-34609672', 'tenant_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'project_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c91a338-742f-433e-8d4a-a7ae6d665797'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90572806', 'ctest-vn-34609672'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90572806', 'ctest-policy-allow-all-23650292']], 'subnet_ipam': [{'subnet_cidr': '106.117.84.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-04 08:06:56,692 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-04 08:06:56,990 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-04 08:06:57,024 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a78ce6d-7ddf-45c2-b916-3e8c392e325d
2024-11-04 08:06:57,040 - DEBUG - Requesting: http://10.0.0.12:8082/project/8a8a981d-1e93-47cf-b2e4-fe3f45464d0e
2024-11-04 08:06:57,129 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/32da2bef-3b21-4e18-a545-e734fc1dd795
2024-11-04 08:06:57,146 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/32da2bef-3b21-4e18-a545-e734fc1dd795
2024-11-04 08:06:57,160 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/32886e05-481f-45d7-b31c-c4af37b60ccc
2024-11-04 08:06:57,171 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/32886e05-481f-45d7-b31c-c4af37b60ccc
2024-11-04 08:06:57,181 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/8fe6892d-cf75-40a2-b716-93c73a792f3f
2024-11-04 08:06:57,189 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-04 08:06:57,189 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/32da2bef-3b21-4e18-a545-e734fc1dd795
2024-11-04 08:06:57,205 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/32886e05-481f-45d7-b31c-c4af37b60ccc
2024-11-04 08:06:57,229 - INFO - Verified VN network id 7 for VN 32da2bef-3b21-4e18-a545-e734fc1dd795
2024-11-04 08:06:57,230 - INFO - Verifications in API Server for VN ctest-vn-23415555 passed
2024-11-04 08:06:57,230 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/32da2bef-3b21-4e18-a545-e734fc1dd795
2024-11-04 08:06:57,245 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/32886e05-481f-45d7-b31c-c4af37b60ccc
2024-11-04 08:06:57,255 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/32886e05-481f-45d7-b31c-c4af37b60ccc
2024-11-04 08:06:57,264 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/8fe6892d-cf75-40a2-b716-93c73a792f3f
2024-11-04 08:06:57,280 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-23415555', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90572806', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3664289553308536344', 'uuid-lslong': '11909179004405274517'}, 'enable': 'true', 'created': '2024-11-04T08:06:54', 'last-modified': '2024-11-04T08:06:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.082276'}
2024-11-04 08:06:57,288 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-04 08:06:57,288 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23415555 passed
2024-11-04 08:06:57,288 - DEBUG - ====Verifying policy data for ctest-vn-23415555 in API_Server ======
2024-11-04 08:06:57,288 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-04 08:06:57,295 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a78ce6d-7ddf-45c2-b916-3e8c392e325d
2024-11-04 08:06:57,310 - DEBUG - Requesting: http://10.0.0.12:8082/project/8a8a981d-1e93-47cf-b2e4-fe3f45464d0e
2024-11-04 08:06:57,396 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/32da2bef-3b21-4e18-a545-e734fc1dd795
2024-11-04 08:06:57,415 - DEBUG - ==>Verifying data for policy with id: fc36bf61-7ecd-4d65-acb1-e033c7fb3bc4, fqn: ['default-domain', 'ctest-TestBasicPolicy-90572806', 'ctest-policy-allow-all-23650292']
2024-11-04 08:06:57,415 - INFO - VN ctest-vn-23415555 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-04 08:06:57,415 - DEBUG - Verifying the vn in opserver
2024-11-04 08:06:57,415 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-23415555 virtual network link through opserver 10.0.0.12
2024-11-04 08:06:57,416 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-04 08:06:57,713 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-04 08:06:57,779 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-23415555', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-23415555?flat'}
2024-11-04 08:06:57,779 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-23415555 is found in opserver
2024-11-04 08:06:57,791 - DEBUG - Do not have enough data to verify VN in agent
2024-11-04 08:06:57,796 - DEBUG - VRF ids for VN ctest-vn-23415555: {}
2024-11-04 08:06:57,796 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-04 08:06:57,802 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a78ce6d-7ddf-45c2-b916-3e8c392e325d
2024-11-04 08:06:57,816 - DEBUG - Requesting: http://10.0.0.12:8082/project/8a8a981d-1e93-47cf-b2e4-fe3f45464d0e
2024-11-04 08:06:57,899 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/19b44066-2aa0-419a-ad65-9045e1a02775
2024-11-04 08:06:57,917 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/19b44066-2aa0-419a-ad65-9045e1a02775
2024-11-04 08:06:57,933 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/bc8fea6e-93a6-4298-84cd-48f44f547193
2024-11-04 08:06:57,943 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/bc8fea6e-93a6-4298-84cd-48f44f547193
2024-11-04 08:06:57,952 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/7ccd8ab8-a184-4fa3-86f9-55de2de11ae0
2024-11-04 08:06:57,962 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-04 08:06:57,962 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/19b44066-2aa0-419a-ad65-9045e1a02775
2024-11-04 08:06:57,977 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/bc8fea6e-93a6-4298-84cd-48f44f547193
2024-11-04 08:06:58,001 - INFO - Verified VN network id 8 for VN 19b44066-2aa0-419a-ad65-9045e1a02775
2024-11-04 08:06:58,001 - INFO - Verifications in API Server for VN ctest-vn-34609672 passed
2024-11-04 08:06:58,001 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/19b44066-2aa0-419a-ad65-9045e1a02775
2024-11-04 08:06:58,018 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/bc8fea6e-93a6-4298-84cd-48f44f547193
2024-11-04 08:06:58,030 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/bc8fea6e-93a6-4298-84cd-48f44f547193
2024-11-04 08:06:58,042 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/7ccd8ab8-a184-4fa3-86f9-55de2de11ae0
2024-11-04 08:06:58,059 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-34609672', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90572806', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1852176154302103962', 'uuid-lslong': '12494551371021821813'}, 'enable': 'true', 'created': '2024-11-04T08:06:55', 'last-modified': '2024-11-04T08:06:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.596741'}
2024-11-04 08:06:58,066 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-04 08:06:58,067 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34609672 passed
2024-11-04 08:06:58,067 - DEBUG - ====Verifying policy data for ctest-vn-34609672 in API_Server ======
2024-11-04 08:06:58,067 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-04 08:06:58,075 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a78ce6d-7ddf-45c2-b916-3e8c392e325d
2024-11-04 08:06:58,093 - DEBUG - Requesting: http://10.0.0.12:8082/project/8a8a981d-1e93-47cf-b2e4-fe3f45464d0e
2024-11-04 08:06:58,177 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/19b44066-2aa0-419a-ad65-9045e1a02775
2024-11-04 08:06:58,193 - DEBUG - ==>Verifying data for policy with id: fc36bf61-7ecd-4d65-acb1-e033c7fb3bc4, fqn: ['default-domain', 'ctest-TestBasicPolicy-90572806', 'ctest-policy-allow-all-23650292']
2024-11-04 08:06:58,193 - INFO - VN ctest-vn-34609672 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-04 08:06:58,193 - DEBUG - Verifying the vn in opserver
2024-11-04 08:06:58,193 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-34609672 virtual network link through opserver 10.0.0.12
2024-11-04 08:06:58,193 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-04 08:06:58,207 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-34609672', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-34609672?flat'}
2024-11-04 08:06:58,207 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-34609672 is found in opserver
2024-11-04 08:06:58,219 - DEBUG - Do not have enough data to verify VN in agent
2024-11-04 08:06:58,225 - DEBUG - VRF ids for VN ctest-vn-34609672: {}
2024-11-04 08:06:58,291 - DEBUG - Services list from nova: [